2011-09-20 17:08:57 +02:00
|
|
|
Index: virt-manager-0.9.0/src/virtManager/details.py
|
2010-08-02 23:45:48 +02:00
|
|
|
===================================================================
|
2011-09-20 17:08:57 +02:00
|
|
|
--- virt-manager-0.9.0.orig/src/virtManager/details.py
|
|
|
|
+++ virt-manager-0.9.0/src/virtManager/details.py
|
2011-11-08 14:40:25 +01:00
|
|
|
@@ -2069,11 +2069,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:
|
2011-11-08 14:40:25 +01:00
|
|
|
@@ -2083,6 +2081,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)
|
2011-11-08 14:40:25 +01:00
|
|
|
@@ -2432,6 +2435,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
|
|
|
|
|
|
|
|
########################
|