Disable "add/remote app shortcuts" action for dom0

Fixes QubesOS/qubes-issues#1367
This commit is contained in:
Marek Marczykowski-Górecki 2015-12-13 01:22:03 +01:00
parent 0f2e999230
commit 1021d718a7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -882,7 +882,8 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
self.action_killvm.setEnabled((vm.last_running or
vm.last_power_state == "Paused") and
vm.qid != 0)
self.action_appmenus.setEnabled(not vm.internal and
self.action_appmenus.setEnabled(vm.qid != 0 and
not vm.internal and
not vm.is_disposablevm())
self.action_editfwrules.setEnabled(vm.is_networked() and not (
vm.is_netvm() and not vm.is_proxyvm()))