diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-10-01 16:19:58 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-12-18 11:53:12 -0400 |
commit | 855e96cefe975e50d140e6c8aa7d3407931b25d7 (patch) | |
tree | fd77e256fb259a618b69f6ffb3cabcd2c990eb98 /src/leap/bitmask/gui/mainwindow.py | |
parent | aff470b3efa671f6c04107f718d359054a739bdc (diff) |
Quit Bitmask if there is no polkit agent running.
Closes #6150.
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r-- | src/leap/bitmask/gui/mainwindow.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py index 1b61de87..6f44ff01 100644 --- a/src/leap/bitmask/gui/mainwindow.py +++ b/src/leap/bitmask/gui/mainwindow.py @@ -263,8 +263,6 @@ class MainWindow(QtGui.QMainWindow): self.soledad_ready.connect(self._start_mail_service) # ################################ end Qt Signals connection ######## - init_platform() - self._wizard = None self._wizard_firstrun = False @@ -276,6 +274,10 @@ class MainWindow(QtGui.QMainWindow): self.logout.connect(self._mail_conductor.stop_mail_services) + if not init_platform(): + self.quit() + return + # start event machines from within the eip and mail conductors # TODO should encapsulate all actions into one object |