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;