Quit app when main window is closed
This commit is contained in:
parent
ce7c652581
commit
cca35e3d0d
@ -74,6 +74,8 @@ class MCEditMainWindow(QtGui.QMainWindow):
|
|||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
MCEditApp.app.quit()
|
||||||
|
|
||||||
class MCEditApp(QtGui.QApplication):
|
class MCEditApp(QtGui.QApplication):
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
super(MCEditApp, self).__init__(argv)
|
super(MCEditApp, self).__init__(argv)
|
||||||
|
Reference in New Issue
Block a user