mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
MiRCARTCanvasInterface.py: prompt to save changes on exit given non-None canvasPathName.
This commit is contained in:
parent
321ec8ffd9
commit
b0794ccaf9
@ -110,6 +110,14 @@ class MiRCARTCanvasInterface():
|
||||
# }}}
|
||||
# {{{ canvasExit(self, event): XXX
|
||||
def canvasExit(self, event):
|
||||
if self.canvasPathName != None:
|
||||
saveChanges = self._dialogSaveChanges()
|
||||
if saveChanges == wx.ID_CANCEL:
|
||||
return
|
||||
elif saveChanges == wx.ID_NO:
|
||||
pass
|
||||
elif saveChanges == wx.ID_YES:
|
||||
self.canvasSave()
|
||||
self.parentFrame.Close(True)
|
||||
# }}}
|
||||
# {{{ canvasExportAsPng(self, event): XXX
|
||||
|
Loading…
Reference in New Issue
Block a user