Fix resuming VMs (#981)

Fixes qubesos/qubes-issues#981
This commit is contained in:
Marek Marczykowski-Górecki 2015-05-03 20:28:45 +02:00
parent 1faa0ac37e
commit 351225a4b3

View File

@ -1093,7 +1093,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
@pyqtSlot(name='on_action_resumevm_triggered')
def action_resumevm_triggered(self):
vm = self.get_selected_vm()
assert not vm.is_running()
assert not vm.is_running() or vm.is_paused()
if vm.is_paused():
try: