diff options
author | Niklas | 2011-11-04 14:26:42 +0100 |
---|---|---|
committer | Niklas | 2011-11-04 14:26:42 +0100 |
commit | e86d15fa86b032ded7503adf3768cd5ca999d4ec (patch) | |
tree | e213fdb38b3276a85c99eaa044f3603a93b1487a /src/networkdiscovery.cpp | |
parent | changed the tryagain (diff) | |
download | fbgui-e86d15fa86b032ded7503adf3768cd5ca999d4ec.tar.gz fbgui-e86d15fa86b032ded7503adf3768cd5ca999d4ec.tar.xz fbgui-e86d15fa86b032ded7503adf3768cd5ca999d4ec.zip |
fixed some bugs: continueBoot , checkConnectivity: first check passed, second check failed. added a new action. it is now possible to triger the tryAgain via F9
Diffstat (limited to 'src/networkdiscovery.cpp')
-rw-r--r-- | src/networkdiscovery.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/networkdiscovery.cpp b/src/networkdiscovery.cpp index 6039bef..4193286 100644 --- a/src/networkdiscovery.cpp +++ b/src/networkdiscovery.cpp @@ -455,9 +455,15 @@ bool NetworkDiscovery::checkConnectivity(QString ifName) { // get gateway address QString pathToGatewayFile(DEFAULT_INTERFACE_CONF_LOCATION); pathToGatewayFile += ifName; - interfaceconfiguration *ifConf = new interfaceconfiguration(); + interfaceconfiguration* ifConf; + if (!_ifcMap.contains(ifName)) { + ifConf = new interfaceconfiguration(); + _ifcMap.insert(ifName, ifConf); + } + else { + ifConf = _ifcMap.value(ifName); + } ifConf->readConfigOutOfFile(pathToGatewayFile); - _ifcMap.insert(ifName, ifConf); // replace default route qxtLog->debug() << _tag << "replace default route"; |