diff options
| author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-11-08 17:23:06 -0300 | 
|---|---|---|
| committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-11-08 17:23:06 -0300 | 
| commit | 6c5a431034cb423a69c8f58a16fbb39a37dec73c (patch) | |
| tree | ea833ced72a5b905305e518dd391364235075c75 /src/leap/bitmask/gui/eip_status.py | |
| parent | b2d1e649f2e8bb18e63355c305f8efa75f66cb04 (diff) | |
Check if we have a systray to use.
This fixes a failure when we run the first run wizard and don't have a
systray ready.
Diffstat (limited to 'src/leap/bitmask/gui/eip_status.py')
| -rw-r--r-- | src/leap/bitmask/gui/eip_status.py | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/leap/bitmask/gui/eip_status.py b/src/leap/bitmask/gui/eip_status.py index c41d9706..1899d6a4 100644 --- a/src/leap/bitmask/gui/eip_status.py +++ b/src/leap/bitmask/gui/eip_status.py @@ -197,8 +197,10 @@ class EIPStatusWidget(QtGui.QWidget):          """          Updates the system tray tooltip using the eip status.          """ -        eip_status = u"{0}: {1}".format(self._service_name, self._eip_status) -        self._systray.set_service_tooltip(EIP_SERVICE, eip_status) +        if self._systray is not None: +            eip_status = u"{0}: {1}".format( +                self._service_name, self._eip_status) +            self._systray.set_service_tooltip(EIP_SERVICE, eip_status)      def set_action_eip_startstop(self, action_eip_startstop):          """ | 
