catch case where no filename for the actual opened event is defined
This commit is contained in:
parent
2b5e8216ba
commit
3508d00c28
@ -319,6 +319,9 @@ class MainWindow(QMainWindow):
|
||||
self.data.exportEvent(self.fname, exform)
|
||||
except FormatError:
|
||||
return False
|
||||
except AttributeError:
|
||||
fname, = QFileDialog.getSaveFileName(self, 'Save event')
|
||||
self.data.exportEvent(fname, exform)
|
||||
return True
|
||||
|
||||
def getComponent(self):
|
||||
|
Loading…
Reference in New Issue
Block a user