Allow restarting auto_cleanup=False DispVMs

This commit is contained in:
Rusty Bird 2018-02-20 08:25:22 +00:00
parent 3967d92e54
commit 07866cbfc4
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

3
qubesmanager/qube_manager.py Executable file → Normal file
View File

@ -500,7 +500,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
and vm.klass != 'AdminVM')
self.action_restartvm.setEnabled(
vm.is_running() and vm.get_power_state() != "Paused"
and vm.klass != 'AdminVM' and vm.klass != 'DispVM')
and vm.klass != 'AdminVM'
and (vm.klass != 'DispVM' or not vm.auto_cleanup))
self.action_killvm.setEnabled(
(vm.get_power_state() == "Paused" or vm.is_running())
and vm.klass != 'AdminVM')