summaryrefslogtreecommitdiff
path: root/virtManager/baseclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'virtManager/baseclass.py')
-rw-r--r--virtManager/baseclass.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/virtManager/baseclass.py b/virtManager/baseclass.py
index 615c85fc..c56c43b8 100644
--- a/virtManager/baseclass.py
+++ b/virtManager/baseclass.py
@@ -189,8 +189,11 @@ class vmmGObjectUI(vmmGObject):
self.builder.set_translation_domain("virt-manager")
self.builder.add_from_string(file(uifile).read())
- self.topwin = self.widget(windowname)
- self.topwin.hide()
+ if not topwin:
+ self.topwin = self.widget(windowname)
+ self.topwin.hide()
+ else:
+ self.topwin = topwin
else:
self.builder = builder
self.topwin = topwin