diff options
author | kali <kali@leap.se> | 2012-12-12 09:16:53 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-12-12 09:16:53 +0900 |
commit | 4984f2c966d11f529a2a8b722814b748b6a524d2 (patch) | |
tree | 3f494b647c8aa0875487a8d2e6790654a73c4c8a /src/leap/baseapp/network.py | |
parent | f671412ebd4f2ce0dd9948cb8821f1d6d8ac7d9b (diff) |
changed some values in new style eipconfig
Diffstat (limited to 'src/leap/baseapp/network.py')
-rw-r--r-- | src/leap/baseapp/network.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/baseapp/network.py b/src/leap/baseapp/network.py index 3e57490d..7363cfaa 100644 --- a/src/leap/baseapp/network.py +++ b/src/leap/baseapp/network.py @@ -18,13 +18,17 @@ class NetworkCheckerAppMixin(object): def __init__(self, *args, **kwargs): provider = kwargs.pop('provider', None) + if provider: + self.init_network_checker(provider) + + def init_network_checker(self, provider): self.network_checker = NetworkCheckerThread( error_cb=self.networkError.emit, debug=self.debugmode, provider=provider) - # XXX move run_checks to slot -- this definitely - # cannot start on init!!! + @QtCore.pyqtSlot(object) + def runNetworkChecks(self): self.network_checker.run_checks() @QtCore.pyqtSlot(object) |