From 07866cbfc4c98666ee8ac62f20783fdceae544df Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 20 Feb 2018 08:25:22 +0000 Subject: [PATCH] Allow restarting auto_cleanup=False DispVMs --- qubesmanager/qube_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 qubesmanager/qube_manager.py diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py old mode 100755 new mode 100644 index 7559db5..e60aa1b --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -500,7 +500,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): and vm.klass != 'AdminVM') self.action_restartvm.setEnabled( vm.is_running() and vm.get_power_state() != "Paused" - and vm.klass != 'AdminVM' and vm.klass != 'DispVM') + and vm.klass != 'AdminVM' + and (vm.klass != 'DispVM' or not vm.auto_cleanup)) self.action_killvm.setEnabled( (vm.get_power_state() == "Paused" or vm.is_running()) and vm.klass != 'AdminVM')