catch case where no filename for the actual opened event is defined

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-13 11:24:27 +01:00
parent 2b5e8216ba
commit 3508d00c28

View File

@ -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):