diff options
author | kali <kali@leap.se> | 2012-12-15 02:25:50 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-12-15 02:25:50 +0900 |
commit | 5e7ca61cfd942404663e68d2d4eae062dfbc66bc (patch) | |
tree | 1540883cdc002930210365c4d2e975a93b2a7989 /src/leap/baseapp/network.py | |
parent | f3cbae1d2c14e2ff22888d4fc83d03ec6c452541 (diff) | |
parent | 914a07aaf8ef52b2eaf88f1bf01fb6f72adcac5a (diff) |
Merge branch 'feature/eip-service-formatchange' into develop
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) |