Gray out "Restart VM" for dispVMs
This commit is contained in:
parent
a6c25b7604
commit
11be5d65fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user