ae026a575b
* Merged code with python-virtinst. virtinst is no longer public * Port from GTK2 to GTK3 (Daniel Berrange, Cole Robinson) * Port from gconf to gsettings * Port from autotools to python distutils * Remove virt-manager-tui * Remove HAL support * IPv6 and static route virtual network support (Gene Czarcinski) * virt-install: Add –cpu host-passthrough (Ken ICHIKAWA, Hu Tao) OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=129
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
Index: virt-manager-0.10.0/virtManager/details.py
|
|
===================================================================
|
|
--- virt-manager-0.10.0.orig/virtManager/details.py
|
|
+++ virt-manager-0.10.0/virtManager/details.py
|
|
@@ -2215,12 +2215,10 @@ 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
|
|
-
|
|
- if self.editted(EDIT_AUTOSTART):
|
|
+ # 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) or self.vm.conn.is_xen():
|
|
auto = self.widget("config-autostart")
|
|
try:
|
|
self.vm.set_autostart(auto.get_active())
|
|
@@ -2229,6 +2227,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)
|
|
@@ -2597,6 +2600,8 @@ class vmmDetails(vmmGObjectUI):
|
|
buttons=Gtk.ButtonsType.OK,
|
|
dialog_type=dtype)
|
|
|
|
+ self.update_on_xend_start()
|
|
+
|
|
return True
|
|
|
|
########################
|