summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2015-06-16 10:54:18 -0700
committerMicah Lee <micah@micahflee.com>2015-06-16 10:54:18 -0700
commit3073ec8a762e474c6a9ea3b0a8ac463ada81a87b (patch)
tree0463e7afbb4734dfbce876f2c0f229fa4b625ef2
parentc25e8f99dc21e01d435d44231508a64052468a5d (diff)
downloadonionshare-3073ec8a762e474c6a9ea3b0a8ac463ada81a87b.tar.gz
onionshare-3073ec8a762e474c6a9ea3b0a8ac463ada81a87b.zip
must load the window_icon before validation, because alert() requires it
-rw-r--r--onionshare_gui/onionshare_gui.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 6635abaf..b2642dbf 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)