Dot allow to run command in paused VM

This commit is contained in:
Marek Marczykowski 2013-02-19 03:33:01 +01:00
parent de27483948
commit ab5fca6e19

View File

@ -1124,7 +1124,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
self.action_updatevm.setEnabled(vm.is_updateable() or vm.qid == 0)
self.action_toggle_audio_input.setEnabled(vm.last_running and vm.qid != 0 and \
session_bus.name_has_owner('org.QubesOS.Audio.%s' % vm.name))
self.action_run_command_in_vm.setEnabled(vm.qid != 0)
self.action_run_command_in_vm.setEnabled(not vm.last_power_state == "Paused" and vm.qid != 0)
self.action_set_keyboard_layout.setEnabled(vm.qid != 0 and vm.last_running)
else:
self.action_settings.setEnabled(False)