]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Must retain a reference to the QMainWindow, or Qt never shows it
authorMicah Lee <micah@micahflee.com>
Fri, 23 Mar 2018 21:43:08 +0000 (14:43 -0700)
committerMicah Lee <micah@micahflee.com>
Fri, 23 Mar 2018 21:43:08 +0000 (14:43 -0700)
torbrowser_launcher/__init__.py

index d6ca5d6f2cec4f1f00fafb28b65c1cff12b06807..08bf381433f01d260043d785b9ed4fcaaa1b58d1 100644 (file)
@@ -70,13 +70,14 @@ def main():
     common = Common(tor_browser_launcher_version)
     app = Application()
 
+    # Open the GUI
+    gui = None
     if settings:
         # Settings mode
-        Settings(common, app)
-
+        gui = Settings(common, app)
     else:
         # Launcher mode
-        Launcher(common, app, url_list)
+        gui = Launcher(common, app, url_list)
 
     # Allow ctrl-c to work
     signal.signal(signal.SIGINT, signal.SIG_DFL)