From 9a1b06b441768d8cac7367f1a1dbf343c3fcf1b9 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 7 Apr 2011 10:46:00 +0200 Subject: [PATCH] Disable 'stop' button for NetVM (#172) --- qubesmanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 981769f..7e1d474 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -589,7 +589,7 @@ class VmManagerWindow(QMainWindow): self.action_removevm.setEnabled(not vm.installed_by_rpm and not vm.last_power_state) self.action_resumevm.setEnabled(not vm.last_power_state) self.action_pausevm.setEnabled(vm.last_power_state and vm.qid != 0) - self.action_shutdownvm.setEnabled(vm.last_power_state and vm.qid != 0) + self.action_shutdownvm.setEnabled(not vm.is_netvm() and vm.last_power_state and vm.qid != 0) self.action_updatevm.setEnabled(vm.is_updateable() and not vm.last_power_state) self.action_editfwrules.setEnabled(vm.is_networked() and not (vm.is_netvm() and not vm.is_proxyvm()))