2012-07-13 22:11:20 +02:00
|
|
|
Index: virt-manager-0.9.3/src/virtManager/details.py
|
2010-08-02 23:45:48 +02:00
|
|
|
===================================================================
|
2012-07-13 22:11:20 +02:00
|
|
|
--- virt-manager-0.9.3.orig/src/virtManager/details.py
|
|
|
|
+++ virt-manager-0.9.3/src/virtManager/details.py
|
|
|
|
@@ -2129,11 +2129,9 @@ class vmmDetails(vmmGObjectUI):
|
2011-09-20 17:08:57 +02:00
|
|
|
|
|
|
|
return self._change_config_helper(df, da, hf, ha)
|
2010-08-02 23:45:48 +02:00
|
|
|
|
|
|
|
- # Boot device / Autostart
|
2011-03-21 20:38:43 +01:00
|
|
|
- def config_boot_options_apply(self):
|
2011-09-20 17:08:57 +02:00
|
|
|
- df, da, add_define, hf, ha, add_hotplug = self.make_apply_data()
|
|
|
|
- ignore = add_hotplug
|
|
|
|
-
|
2010-08-02 23:45:48 +02:00
|
|
|
+ # Autostart - See bnc#624250 - L3: virt-manager doesn't update
|
|
|
|
+ # "Autostart" setting in vm configuration correctly
|
|
|
|
+ def update_on_xend_start(self):
|
2011-09-20 17:08:57 +02:00
|
|
|
if self.editted(EDIT_AUTOSTART):
|
|
|
|
auto = self.widget("config-autostart")
|
|
|
|
try:
|
2012-07-13 22:11:20 +02:00
|
|
|
@@ -2143,6 +2141,11 @@ class vmmDetails(vmmGObjectUI):
|
2011-09-20 17:08:57 +02:00
|
|
|
(_("Error changing autostart value: %s") % str(e)))
|
2011-03-21 20:38:43 +01:00
|
|
|
return False
|
|
|
|
|
|
|
|
+ # Boot device
|
|
|
|
+ def config_boot_options_apply(self):
|
2011-09-20 17:08:57 +02:00
|
|
|
+ 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)
|
2012-07-13 22:11:20 +02:00
|
|
|
@@ -2499,6 +2502,8 @@ class vmmDetails(vmmGObjectUI):
|
2011-03-21 20:38:43 +01:00
|
|
|
buttons=gtk.BUTTONS_OK,
|
|
|
|
dialog_type=dtype)
|
2010-08-02 23:45:48 +02:00
|
|
|
|
|
|
|
+ self.update_on_xend_start()
|
|
|
|
+
|
|
|
|
return True
|
|
|
|
|
|
|
|
########################
|