X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=googlelatitude.cpp;h=47e90c54e27132a21f3c46e1c972cb43cccc3ac8;hb=2aa05505684373ac4aeff3547adf16c17ba9934f;hp=81b1d5bc9628417c052883b142adf5297228b52f;hpb=d61a299b8bfaa74e8c2680923a3efbbcf2ab8347;p=googlelatitude diff --git a/googlelatitude.cpp b/googlelatitude.cpp index 81b1d5b..47e90c5 100644 --- a/googlelatitude.cpp +++ b/googlelatitude.cpp @@ -95,12 +95,10 @@ void GoogleLatitude::sendCurrentLocation() { if (abs(CurrentLongitude) <= 0.01) return; if (abs(CurrentAccuracy) <= 0.01) return; - if (!OauthSettings.value("net_auto").toBool()) { - QNetworkConfigurationManager mgr; - if (!mgr.isOnline()) { - qDebug() << "* GoogleLatitude::sendCurrentLocation" << "offline"; - return; - } + QNetworkConfigurationManager mgr; + if (!OauthSettings.value("net_auto").toBool() && !mgr.isOnline()) { + qDebug() << "* GoogleLatitude::sendCurrentLocation" << "offline"; + return; } QByteArray json_location;