From 3073ec8a762e474c6a9ea3b0a8ac463ada81a87b Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 16 Jun 2015 10:54:18 -0700 Subject: [PATCH] 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 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)