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)
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user