From fa250a76ef5a8c05d068a9ad956279b668058988 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 14 Apr 2011 13:22:05 -0400 Subject: [PATCH] create: Make sure we properly cleanup customize window --- src/virtManager/create.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/virtManager/create.py b/src/virtManager/create.py index cf0e8a1f..c8143460 100644 --- a/src/virtManager/create.py +++ b/src/virtManager/create.py @@ -1606,17 +1606,20 @@ class vmmCreate(vmmGObjectUI): def customize(self, guest): virtinst_guest = vmmDomainVirtinst(self.conn, guest, self.guest.uuid) - if self.config_window: - self.config_window.disconnect(self.config_window_signal) - self.config_window.close() - del(self.config_window) + def cleanup_config_window(): + if self.config_window: + self.config_window.disconnect(self.config_window_signal) + self.config_window.cleanup() + self.config_window = None def start_install_wrapper(ignore, guest): + cleanup_config_window() if not self.is_visible(): return self._check_start_error(self.start_install, guest) + cleanup_config_window() self.config_window = vmmDetails(virtinst_guest, self.topwin) self.config_window_signal = self.config_window.connect(