mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-12 09:18:00 +03:00
details: Avoid some misleading logging on rename
This commit is contained in:
parent
1bfdf0575f
commit
f2ff378a9d
@ -1910,10 +1910,6 @@ class vmmDetails(vmmGObjectUI):
|
|||||||
kwargs = {}
|
kwargs = {}
|
||||||
hotplug_args = {}
|
hotplug_args = {}
|
||||||
|
|
||||||
if self.edited(EDIT_NAME):
|
|
||||||
# Renaming is pretty convoluted, so do it here synchronously
|
|
||||||
self.vm.define_name(self.widget("overview-name").get_text())
|
|
||||||
|
|
||||||
if self.edited(EDIT_TITLE):
|
if self.edited(EDIT_TITLE):
|
||||||
kwargs["title"] = self.widget("overview-title").get_text()
|
kwargs["title"] = self.widget("overview-title").get_text()
|
||||||
hotplug_args["title"] = kwargs["title"]
|
hotplug_args["title"] = kwargs["title"]
|
||||||
@ -1949,6 +1945,15 @@ class vmmDetails(vmmGObjectUI):
|
|||||||
idmap_list = None
|
idmap_list = None
|
||||||
kwargs["idmap_list"] = idmap_list
|
kwargs["idmap_list"] = idmap_list
|
||||||
|
|
||||||
|
# This needs to be last
|
||||||
|
if self.edited(EDIT_NAME):
|
||||||
|
# Renaming is pretty convoluted, so do it here synchronously
|
||||||
|
self.vm.define_name(self.widget("overview-name").get_text())
|
||||||
|
|
||||||
|
if not kwargs and not hotplug_args:
|
||||||
|
# Saves some useless redefine attempts
|
||||||
|
return
|
||||||
|
|
||||||
return vmmAddHardware.change_config_helper(self.vm.define_overview,
|
return vmmAddHardware.change_config_helper(self.vm.define_overview,
|
||||||
kwargs, self.vm, self.err,
|
kwargs, self.vm, self.err,
|
||||||
hotplug_args=hotplug_args)
|
hotplug_args=hotplug_args)
|
||||||
|
Loading…
Reference in New Issue
Block a user