[bugfix] return when no file is selected on load_data
This commit is contained in:
parent
c07642653d
commit
42c288ad82
@ -669,6 +669,8 @@ class MainWindow(QMainWindow):
|
|||||||
action = self.sender()
|
action = self.sender()
|
||||||
if isinstance(action, QAction):
|
if isinstance(action, QAction):
|
||||||
fname = self.filename_from_action(action)
|
fname = self.filename_from_action(action)
|
||||||
|
if not fname:
|
||||||
|
return
|
||||||
self.set_fname(fname, type)
|
self.set_fname(fname, type)
|
||||||
data = dict(auto=self.autodata, manual=self.data)
|
data = dict(auto=self.autodata, manual=self.data)
|
||||||
data[type] += Data(self, evtdata=fname)
|
data[type] += Data(self, evtdata=fname)
|
||||||
|
Loading…
Reference in New Issue
Block a user