mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-31 01:48:08 +03:00
clone: Fix cleanup when repopulating the UI
This commit is contained in:
parent
cc8e930613
commit
2c98bc6788
@ -223,6 +223,7 @@ class vmmCloneVM(vmmGObjectUI):
|
|||||||
net_box = self.window.get_widget("clone-network-box")
|
net_box = self.window.get_widget("clone-network-box")
|
||||||
for c in net_box.get_children():
|
for c in net_box.get_children():
|
||||||
net_box.remove(c)
|
net_box.remove(c)
|
||||||
|
c.destroy()
|
||||||
|
|
||||||
self.net_list = {}
|
self.net_list = {}
|
||||||
self.mac_list = []
|
self.mac_list = []
|
||||||
@ -502,6 +503,7 @@ class vmmCloneVM(vmmGObjectUI):
|
|||||||
storage_box = self.window.get_widget("clone-storage-box")
|
storage_box = self.window.get_widget("clone-storage-box")
|
||||||
for c in storage_box.get_children():
|
for c in storage_box.get_children():
|
||||||
storage_box.remove(c)
|
storage_box.remove(c)
|
||||||
|
c.destroy()
|
||||||
|
|
||||||
for target in self.target_list:
|
for target in self.target_list:
|
||||||
disk = self.storage_list[target]
|
disk = self.storage_list[target]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user