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) self.data.exportEvent(self.fname, exform)
except FormatError: except FormatError:
return False return False
except AttributeError:
fname, = QFileDialog.getSaveFileName(self, 'Save event')
self.data.exportEvent(fname, exform)
return True return True
def getComponent(self): def getComponent(self):