28 lines
1016 B
Diff
28 lines
1016 B
Diff
|
|
||
|
Subject: clone: Fix cleanup when repopulating the UI
|
||
|
From: Cole Robinson crobinso@redhat.com Thu Apr 14 13:12:24 2011 -0400
|
||
|
Date: Thu Apr 14 13:12:24 2011 -0400:
|
||
|
Git: 2c98bc67888e3e54d3dec93e3e55f9b4da1d56d5
|
||
|
|
||
|
|
||
|
Index: virt-manager-0.8.7/src/virtManager/clone.py
|
||
|
===================================================================
|
||
|
--- virt-manager-0.8.7.orig/src/virtManager/clone.py
|
||
|
+++ virt-manager-0.8.7/src/virtManager/clone.py
|
||
|
@@ -198,6 +198,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 = []
|
||
|
@@ -477,6 +478,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]
|