[Pkg-anonymity-tools] [torbrowser-launcher] 12/23: only hide window if there is a window to hide (#151)

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Dec 1 21:16:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian
in repository torbrowser-launcher.

commit d89fe1ed1ea9d861651758ecf070b5d75c1bf5b0
Author: Micah Lee <micah at micahflee.com>
Date:   Mon Nov 24 22:37:55 2014 -0800

    only hide window if there is a window to hide (#151)
---
 torbrowser_launcher/launcher.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/torbrowser_launcher/launcher.py b/torbrowser_launcher/launcher.py
index c0af93a..cca60cd 100644
--- a/torbrowser_launcher/launcher.py
+++ b/torbrowser_launcher/launcher.py
@@ -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']])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/torbrowser-launcher.git



More information about the Pkg-anonymity-tools mailing list