QTimer::singleShot(interval*1000, this, SLOT(refresh()));
QTimer::singleShot(wait*1000, this, SLOT(stop()));
+#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
+ QNetworkConfigurationManager mgr;
+ if (!mgr.isOnline()) {
+ qDebug() << "GpsMaemo5: offline";
+ return;
+ }
+#endif
+
#ifdef Q_WS_MAEMO_5
g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL);
if (usegps) {