[Pkg-privacy-commits] [torbrowser-launcher] 422/476: only hide window if there is a window to hide (#151)

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:22:06 UTC 2015


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

infinity0 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/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list