2015-05-04 22:15:01 +02:00
|
|
|
Reference: bnc#874594
|
|
|
|
When the 'Power on virtual machine' button is double clicked,
|
|
|
|
virt-manager issues two start commands to start the VM which
|
|
|
|
results in a failure. There is code elsewhere to desensitize the
|
|
|
|
button but this patch does it earlier.
|
2018-10-30 23:00:52 +01:00
|
|
|
Index: virt-manager-2.0.0/virtManager/details.py
|
2014-06-12 07:14:17 +02:00
|
|
|
===================================================================
|
2018-10-30 23:00:52 +01:00
|
|
|
--- virt-manager-2.0.0.orig/virtManager/details.py
|
|
|
|
+++ virt-manager-2.0.0/virtManager/details.py
|
|
|
|
@@ -1489,6 +1489,9 @@ class vmmDetails(vmmGObjectUI):
|
2014-05-16 01:33:17 +02:00
|
|
|
def control_vm_run(self, src_ignore):
|
2016-06-22 00:34:03 +02:00
|
|
|
if self.has_unapplied_changes(self.get_hw_row()):
|
|
|
|
return
|
2014-05-16 01:33:17 +02:00
|
|
|
+ # De-sensitize widget so a double click on the icon won't attempt to
|
|
|
|
+ # start the VM twice
|
|
|
|
+ self.widget("control-run").set_sensitive(False)
|
2018-10-30 23:00:52 +01:00
|
|
|
vmmenu.VMActionUI.run(self, self.vm)
|
2014-05-16 01:33:17 +02:00
|
|
|
|
2018-10-30 23:00:52 +01:00
|
|
|
def control_vm_shutdown(self, src_ignore):
|