clone: Fix cleanup when repopulating the UI

This commit is contained in:
Cole Robinson 2011-04-14 13:12:24 -04:00
parent cc8e930613
commit 2c98bc6788

View File

@ -223,6 +223,7 @@ class vmmCloneVM(vmmGObjectUI):
net_box = self.window.get_widget("clone-network-box")
for c in net_box.get_children():
net_box.remove(c)
c.destroy()
self.net_list = {}
self.mac_list = []
@ -502,6 +503,7 @@ class vmmCloneVM(vmmGObjectUI):
storage_box = self.window.get_widget("clone-storage-box")
for c in storage_box.get_children():
storage_box.remove(c)
c.destroy()
for target in self.target_list:
disk = self.storage_list[target]