Browse Source

Dot allow to run command in paused VM

Marek Marczykowski 11 years ago
parent
commit
ab5fca6e19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubesmanager/main.py

+ 1 - 1
qubesmanager/main.py

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