[Pkg-privacy-commits] [torbrowser-launcher] 28/48: only hide window if there is a window to hide (#151)
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:22:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository torbrowser-launcher.
commit b05e07a5f748e66b896b2276c983d354fb9a1cd5
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