virt-manager/virtman-fix-ui-cleanup.diff
Charles Arnold 8e527d3db7 - Upstream fixes
virtman-fix-storage_capable.diff
  virtman-fix-ui-resize.diff
  virtman-fix-type.diff
  virtman-fix-addhw-nonhotplug.diff
  virtman-fix-no-nic-present.diff
  virtman-fix-ui-cleanup.diff

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=53
2011-07-08 22:29:58 +00:00

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]