Disable 'stop' button for NetVM (#172)

This commit is contained in:
Marek Marczykowski 2011-04-07 10:46:00 +02:00
parent 0279b5dc1a
commit 9a1b06b441

View File

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