Fixed a bug in closing the app with the X button and selecting No on the question
This commit is contained in:
+4
-1
@@ -548,7 +548,10 @@ class GuiMain(QMainWindow):
|
||||
return
|
||||
|
||||
def closeEvent(self, theEvent):
|
||||
self.closeMain()
|
||||
if self.closeMain():
|
||||
theEvent.accept()
|
||||
else:
|
||||
theEvent.ignore()
|
||||
return
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user