Merge remote-tracking branch 'qubesos/pr/8'

* qubesos/pr/8:
  Gray out "Restart VM" for dispVMs
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-21 15:46:53 +01:00
commit b51cd2dd5f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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)