f0f05569d6
virtman-update-backend.diff - Update to latest upstream git version for various bug fixes virtmanager: a712a7b32e6d7b7d9d53561b3ed2078190191560 virtinst: 15d4901a3c8b855838931976e023158b8cda1c37 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=78
41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
Index: virt-manager-0.9.0/src/virtManager/details.py
|
|
===================================================================
|
|
--- virt-manager-0.9.0.orig/src/virtManager/details.py
|
|
+++ virt-manager-0.9.0/src/virtManager/details.py
|
|
@@ -2069,11 +2069,9 @@ class vmmDetails(vmmGObjectUI):
|
|
|
|
return self._change_config_helper(df, da, hf, ha)
|
|
|
|
- # Boot device / Autostart
|
|
- def config_boot_options_apply(self):
|
|
- df, da, add_define, hf, ha, add_hotplug = self.make_apply_data()
|
|
- ignore = add_hotplug
|
|
-
|
|
+ # Autostart - See bnc#624250 - L3: virt-manager doesn't update
|
|
+ # "Autostart" setting in vm configuration correctly
|
|
+ def update_on_xend_start(self):
|
|
if self.editted(EDIT_AUTOSTART):
|
|
auto = self.widget("config-autostart")
|
|
try:
|
|
@@ -2083,6 +2081,11 @@ class vmmDetails(vmmGObjectUI):
|
|
(_("Error changing autostart value: %s") % str(e)))
|
|
return False
|
|
|
|
+ # Boot device
|
|
+ def config_boot_options_apply(self):
|
|
+ df, da, add_define, hf, ha, add_hotplug = self.make_apply_data()
|
|
+ ignore = add_hotplug
|
|
+
|
|
if self.editted(EDIT_BOOTORDER):
|
|
bootdevs = self.get_config_boot_devs()
|
|
add_define(self.vm.set_boot_device, bootdevs)
|
|
@@ -2432,6 +2435,8 @@ class vmmDetails(vmmGObjectUI):
|
|
buttons=gtk.BUTTONS_OK,
|
|
dialog_type=dtype)
|
|
|
|
+ self.update_on_xend_start()
|
|
+
|
|
return True
|
|
|
|
########################
|