diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 18:09:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 20:44:22 -0800 |
commit | 4d4f5ed89be0a6bf77069ecb490953ea58f358dc (patch) | |
tree | 9e852c819cfe5991003a1a24a948d69082570fc8 /subsurface-core | |
parent | 69619ef5aa801b85707ca88dad993e1a744c8762 (diff) | |
download | subsurface-4d4f5ed89be0a6bf77069ecb490953ea58f358dc.tar.gz |
GPS data: don't try to track what's uploaded
This has been the cause of issues in several cases. We should simply always try
to push all data to the server - it deals with redundant uploads quite nicely.
(previous commits already stopped responding to this flag, this simply removes
all mention of it)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/gpslocation.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index 72f390df7..ac694430f 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -482,7 +482,6 @@ void GpsLocation::deleteFixesFromServer() } reply->deleteLater(); status(QString("completed deleting gps fix %1 - response: ").arg(gt.idx) + reply->readAll()); - geoSettings->setValue(QString("gpsFix%1_uploaded").arg(idx), 1); } } @@ -503,8 +502,6 @@ void GpsLocation::uploadToServer() int idx = gt.idx; QDateTime dt; QUrlQuery data; - //if (geoSettings->contains(QString("gpsFix%1_uploaded").arg(idx))) - // continue; dt.setTime_t(gt.when - gettimezoneoffset(gt.when)); qDebug() << dt.toString() << get_dive_date_string(gt.when); data.addQueryItem("login", prefs.userid); @@ -545,7 +542,6 @@ void GpsLocation::uploadToServer() } reply->deleteLater(); status(QString("completed sending gps fix %1 - response: ").arg(gt.idx) + reply->readAll()); - geoSettings->setValue(QString("gpsFix%1_uploaded").arg(idx), 1); } // and now remove the ones that were locally deleted deleteFixesFromServer(); |