mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
69619ef5aa
commit
4d4f5ed89b
1 changed files with 0 additions and 4 deletions
|
@ -482,7 +482,6 @@ void GpsLocation::deleteFixesFromServer()
|
||||||
}
|
}
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
status(QString("completed deleting gps fix %1 - response: ").arg(gt.idx) + reply->readAll());
|
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;
|
int idx = gt.idx;
|
||||||
QDateTime dt;
|
QDateTime dt;
|
||||||
QUrlQuery data;
|
QUrlQuery data;
|
||||||
//if (geoSettings->contains(QString("gpsFix%1_uploaded").arg(idx)))
|
|
||||||
// continue;
|
|
||||||
dt.setTime_t(gt.when - gettimezoneoffset(gt.when));
|
dt.setTime_t(gt.when - gettimezoneoffset(gt.when));
|
||||||
qDebug() << dt.toString() << get_dive_date_string(gt.when);
|
qDebug() << dt.toString() << get_dive_date_string(gt.when);
|
||||||
data.addQueryItem("login", prefs.userid);
|
data.addQueryItem("login", prefs.userid);
|
||||||
|
@ -545,7 +542,6 @@ void GpsLocation::uploadToServer()
|
||||||
}
|
}
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
status(QString("completed sending gps fix %1 - response: ").arg(gt.idx) + reply->readAll());
|
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
|
// and now remove the ones that were locally deleted
|
||||||
deleteFixesFromServer();
|
deleteFixesFromServer();
|
||||||
|
|
Loading…
Add table
Reference in a new issue