From 11be5d65facf1ba730be3ab4773532f527790e60 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Mon, 21 Nov 2016 14:39:25 +0000 Subject: [PATCH] Gray out "Restart VM" for dispVMs --- qubesmanager/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 6ab2f81..913ac2b 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -899,7 +899,8 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): self.action_restartvm.setEnabled( vm.last_running and vm.last_power_state != "Paused" and - vm.qid != 0) + vm.qid != 0 and + not vm.is_disposablevm()) self.action_killvm.setEnabled((vm.last_running or vm.last_power_state == "Paused") and vm.qid != 0)