details: Don't backtrace when cleaning up serial consoles

This commit is contained in:
Cole Robinson 2011-06-07 17:57:49 -04:00
parent 102c5468f0
commit da590bba95
2 changed files with 3 additions and 4 deletions

View File

@ -937,7 +937,6 @@ class vmmConsolePages(vmmGObjectUI):
cpage == PAGE_VIEWER and
self.viewer_connected)
print "ALLOW FULLSCREEN", dpage, cpage, self.viewer_connected, allow_fullscreen
self.window.get_widget("control-fullscreen").set_sensitive(allow_fullscreen)
self.window.get_widget("details-menu-view-fullscreen").set_sensitive(allow_fullscreen)

View File

@ -420,9 +420,6 @@ class vmmDetails(vmmGObjectUI):
self.conn = None
self.addhwmenu = None
self.console.cleanup()
self.console = None
if self.addhw:
self.addhw.cleanup()
self.addhw = None
@ -438,6 +435,9 @@ class vmmDetails(vmmGObjectUI):
for name in self.serial_tabs:
self._close_serial_tab(name)
self.console.cleanup()
self.console = None
except:
logging.exception("Error cleaning up details")