Fixed a bug in closing the app with the X button and selecting No on the question

This commit is contained in:
Veronica K. B. Olsen
2019-05-26 17:06:40 +02:00
parent 6c6d1ac325
commit 5c20075b73
2 changed files with 4 additions and 3 deletions
+4 -1
View File
@@ -548,7 +548,10 @@ class GuiMain(QMainWindow):
return
def closeEvent(self, theEvent):
self.closeMain()
if self.closeMain():
theEvent.accept()
else:
theEvent.ignore()
return
##