[Pkg-privacy-commits] [onionshare] 18/33: must load the window_icon before validation, because alert() requires it
Ximin Luo
infinity0 at debian.org
Mon Oct 19 14:15:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository onionshare.
commit 3073ec8a762e474c6a9ea3b0a8ac463ada81a87b
Author: Micah Lee <micah at micahflee.com>
Date: Tue Jun 16 10:54:18 2015 -0700
must load the window_icon before validation, because alert() requires it
---
onionshare_gui/onionshare_gui.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 6635aba..b2642db 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -242,6 +242,10 @@ def main():
stay_open = bool(args.stay_open)
debug = bool(args.debug)
+ # create the onionshare icon
+ global window_icon
+ window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
+
# validation
if filenames:
valid = True
@@ -252,10 +256,6 @@ def main():
if not valid:
sys.exit()
- # create the onionshare icon
- global window_icon
- window_icon = QtGui.QIcon(common.get_image_path('logo.png'))
-
# start the onionshare app
web.set_stay_open(stay_open)
app = onionshare.OnionShare(debug, local_only, stay_open)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list