virt-manager/virtman-autorestart.diff

35 lines
1.3 KiB
Diff
Raw Normal View History

Index: virt-manager-0.8.7/src/virtManager/details.py
===================================================================
--- virt-manager-0.8.7.orig/src/virtManager/details.py
+++ virt-manager-0.8.7/src/virtManager/details.py
@@ -1774,8 +1774,9 @@ class vmmDetails(vmmGObjectUI):
self.vm.hotplug_both_mem,
(curmem, maxmem))
- # Boot device / Autostart
- def config_boot_options_apply(self):
+ # Autostart - See bnc#624250 - L3: virt-manager doesn't update
+ # "Autostart" setting in vm configuration correctly
+ def update_on_xend_start(self):
auto = self.window.get_widget("config-autostart")
if auto.get_property("sensitive"):
@@ -1786,6 +1787,8 @@ class vmmDetails(vmmGObjectUI):
str(e)), "".join(traceback.format_exc()))
return False
+ # Boot device
+ def config_boot_options_apply(self):
bootdevs = self.get_config_boot_devs()
bootmenu = self.window.get_widget("boot-menu").get_active()
@@ -2019,6 +2022,8 @@ class vmmDetails(vmmGObjectUI):
buttons=gtk.BUTTONS_OK,
dialog_type=dtype)
+ self.update_on_xend_start()
+
return True
########################