From: Rodrigo Linfati Date: Sat, 2 Jan 2010 20:32:49 +0000 (+0100) Subject: no update on x or y == 0 X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=commitdiff_plain;h=040c0c504442b8b73b29d04c5e7931968de50f09 no update on x or y == 0 --- diff --git a/src/glatitude.cpp b/src/glatitude.cpp index 68b626f..7d8881a 100644 --- a/src/glatitude.cpp +++ b/src/glatitude.cpp @@ -26,6 +26,8 @@ void GoogleLatitude::set(double la, double lo, double ac) { latitude = la; longitude = lo; accuracy = ac; + + if (la*lo == 0) return; worker->get(QNetworkRequest(urllogin)); } diff --git a/src/latitude.cpp b/src/latitude.cpp index 47e08e1..40a0a13 100644 --- a/src/latitude.cpp +++ b/src/latitude.cpp @@ -151,12 +151,6 @@ void LatitudeGUI::show_lat() { layout->addLayout(layout_source); location->setLayout(layout); - // gps enable only on maemo5 -#ifndef Q_WS_MAEMO_5 - source_cell->setDisabled(1); - source_gps->setDisabled(1); -#endif - // set widget setCentralWidget(location); setWindowTitle(tr("Google Latitude Updater"));