From 86d3254c261c358dc92784f0ed0125c62e390c62 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Sun, 10 Apr 2011 22:44:38 +0200 Subject: [PATCH] Allows system shutdown/restart when manager window is open --- qubesmanager/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 84d0b73..9ca6fc1 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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()