qDebug() << "GoogleLatitude: set la" << la << "lo" << lo << "ac" << ac << "current" << QDateTime::currentDateTime().toUTC().toTime_t();
if (login_error) return;
if (la*lo == 0) return;
+ if (!accuracy) return;
if ( QDateTime::currentDateTime().toUTC().toTime_t() < lastupdate + interval ) return;
+#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
QNetworkConfigurationManager mgr;
if (!mgr.isOnline()) {
qDebug() << "GoogleLatitude: offline";
return;
}
+#endif
worker->get(QNetworkRequest(urllogin));
}
demonio->setText(tr("&Start Daemon"));
} else {
QProcess *cli = new QProcess(this);
- cli->start(QCoreApplication::applicationDirPath()+"/GoogleLatitudeDaemon");
+ cli->start(QCoreApplication::applicationDirPath()+QDir::separator()+"GoogleLatitudeDaemon");
qDebug() << "LatitudeGUI: demonio" << QCoreApplication::applicationDirPath()+"/GoogleLatitudeDaemon";
if ( ! system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) {
demonio->setText(tr("&Stop Daemon"));