diff --git a/data/org.virt-manager.virt-manager.gschema.xml b/data/org.virt-manager.virt-manager.gschema.xml index 511d6d13..355154d6 100644 --- a/data/org.virt-manager.virt-manager.gschema.xml +++ b/data/org.virt-manager.virt-manager.gschema.xml @@ -334,12 +334,6 @@ Whether we require confirmation to remove a virtual device - - true - Confirm device interface start and stop - Whether we require confirmation to start or stop a libvirt virtual interface - - true Confirm about unapplied device changes diff --git a/ui/preferences.ui b/ui/preferences.ui index 1de17b33..f717e9d9 100644 --- a/ui/preferences.ui +++ b/ui/preferences.ui @@ -902,7 +902,7 @@ Redirection: 1 - 4 + 3 @@ -916,33 +916,6 @@ Redirection: 0 - 4 - - - - - True - False - start - _Interface start/stop: - True - prefs-confirm-interface - - - 0 - 3 - - - - - True - True - False - True - - - - 1 3 @@ -957,7 +930,7 @@ Redirection: 0 - 5 + 4 @@ -970,7 +943,7 @@ Redirection: 1 - 5 + 4 @@ -984,7 +957,7 @@ Redirection: 0 - 6 + 5 @@ -998,7 +971,7 @@ Redirection: 1 - 6 + 5 diff --git a/virtManager/config.py b/virtManager/config.py index 55c6f06b..fb2fc2b9 100644 --- a/virtManager/config.py +++ b/virtManager/config.py @@ -335,8 +335,6 @@ class vmmConfig(object): return self.conf.get("/confirm/pause") def get_confirm_removedev(self): return self.conf.get("/confirm/removedev") - def get_confirm_interface(self): - return self.conf.get("/confirm/interface-power") def get_confirm_unapplied(self): return self.conf.get("/confirm/unapplied-dev") def get_confirm_delstorage(self): @@ -350,8 +348,6 @@ class vmmConfig(object): self.conf.set("/confirm/pause", val) def set_confirm_removedev(self, val): self.conf.set("/confirm/removedev", val) - def set_confirm_interface(self, val): - self.conf.set("/confirm/interface-power", val) def set_confirm_unapplied(self, val): self.conf.set("/confirm/unapplied-dev", val) def set_confirm_delstorage(self, val): diff --git a/virtManager/preferences.py b/virtManager/preferences.py index 26d004fd..1e06ff6c 100644 --- a/virtManager/preferences.py +++ b/virtManager/preferences.py @@ -57,7 +57,6 @@ class vmmPreferences(vmmGObjectUI): self.refresh_confirm_poweroff() self.refresh_confirm_pause() self.refresh_confirm_removedev() - self.refresh_confirm_interface() self.refresh_confirm_unapplied() self.refresh_confirm_delstorage() @@ -86,7 +85,6 @@ class vmmPreferences(vmmGObjectUI): "on_prefs_confirm_poweroff_toggled": self.change_confirm_poweroff, "on_prefs_confirm_pause_toggled": self.change_confirm_pause, "on_prefs_confirm_removedev_toggled": self.change_confirm_removedev, - "on_prefs_confirm_interface_toggled": self.change_confirm_interface, "on_prefs_confirm_unapplied_toggled": self.change_confirm_unapplied, "on_prefs_confirm_delstorage_toggled": self.change_confirm_delstorage, "on_prefs_btn_keys_define_clicked": self.change_grab_keys, @@ -308,9 +306,6 @@ class vmmPreferences(vmmGObjectUI): def refresh_confirm_removedev(self): self.widget("prefs-confirm-removedev").set_active( self.config.get_confirm_removedev()) - def refresh_confirm_interface(self): - self.widget("prefs-confirm-interface").set_active( - self.config.get_confirm_interface()) def refresh_confirm_unapplied(self): self.widget("prefs-confirm-unapplied").set_active( self.config.get_confirm_unapplied()) @@ -434,8 +429,6 @@ class vmmPreferences(vmmGObjectUI): self.config.set_confirm_pause(src.get_active()) def change_confirm_removedev(self, src): self.config.set_confirm_removedev(src.get_active()) - def change_confirm_interface(self, src): - self.config.set_confirm_interface(src.get_active()) def change_confirm_unapplied(self, src): self.config.set_confirm_unapplied(src.get_active()) def change_confirm_delstorage(self, src):