Allows system shutdown/restart when manager window is open

This commit is contained in:
Tomasz Sterna 2011-04-10 22:44:38 +02:00 committed by Joanna Rutkowska
parent c9f224d1aa
commit 86d3254c26

View File

@ -605,8 +605,9 @@ class VmManagerWindow(QMainWindow):
return tbl_W
def closeEvent (self, event):
self.hide()
event.ignore()
if event.spontaneous(): # There is something borked in Qt, as the logic here is inverted on X11
self.hide()
event.ignore()
def create_appvm(self):
dialog = NewAppVmDlg()