only hide window if there is a window to hide (#151)

This commit is contained in:
Micah Lee 2014-11-24 22:37:55 -08:00
parent 99fac15206
commit d89fe1ed1e

View File

@ -627,9 +627,10 @@ class Launcher:
t.start()
# hide the TBL window (#151)
self.window.hide()
while gtk.events_pending():
gtk.main_iteration_do(True)
if hasattr(self, 'window'):
self.window.hide()
while gtk.events_pending():
gtk.main_iteration_do(True)
# run Tor Browser
subprocess.call([self.common.paths['tbb']['start']])