Browse Source

wxGUI/tplot: fix export csv file (#1206)

Tomas Zigo 4 years ago
parent
commit
6f3e7f8b52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/tplot/frame.py

+ 1 - 1
gui/wxpython/tplot/frame.py

@@ -794,6 +794,7 @@ class TplotFrame(wx.Frame):
 
     def OnRedraw(self, event=None):
         """Required redrawing."""
+        self.init()
         self.csvpath = self.csvButton.GetValue()
         self.header = self.headerCheck.IsChecked()
         if (os.path.exists(self.csvpath) and not self.overwrite):
@@ -807,7 +808,6 @@ class TplotFrame(wx.Frame):
                        message=_("Please change name of output CSV file or "))
                 return
             dlg.Destroy()
-        self.init()
         datasetsR = self.datasetSelectR.GetValue().strip()
         datasetsV = self.datasetSelectV.GetValue().strip()