host: Only decrement window counter if host isn't visible

This commit is contained in:
Cole Robinson 2010-02-12 12:09:39 -05:00
parent 4ff0832301
commit 09968ec776
1 changed files with 3 additions and 2 deletions

View File

@ -305,8 +305,9 @@ class vmmHost(gobject.GObject):
return 0
def close(self,ignore1=None,ignore2=None):
self.window.get_widget("vmm-host").hide()
self.engine.decrement_window_counter()
if self.is_visible():
self.window.get_widget("vmm-host").hide()
self.engine.decrement_window_counter()
return 1
def show_help(self, src):