From 404b5dedc2468cb7a0aa0134ba540d2aebd827c4 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 5 Feb 2014 14:25:01 -0500 Subject: [PATCH] create: Don't log inaccurate 'close' message --- virtManager/create.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtManager/create.py b/virtManager/create.py index 321153c87..302f17ed4 100644 --- a/virtManager/create.py +++ b/virtManager/create.py @@ -173,7 +173,8 @@ class vmmCreate(vmmGObjectUI): self.topwin.present() def close(self, ignore1=None, ignore2=None): - logging.debug("Closing new vm wizard") + if self.is_visible(): + logging.debug("Closing new vm wizard") self.topwin.hide() if self.config_window: