mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Location service: send dive site name
Right now this always sends the default name for GPS fixes created by the location service. There isn't much point in making this configurable. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
97fa132202
commit
b688f417de
1 changed files with 4 additions and 0 deletions
|
@ -246,6 +246,10 @@ void GpsLocation::uploadToServer()
|
|||
data.addQueryItem("dive_time", dt.toString("hh:mm"));
|
||||
data.addQueryItem("dive_latitude", QString::number(geoSettings->value(QString("gpsFix%1_lat").arg(i)).toInt() / 1000000.0));
|
||||
data.addQueryItem("dive_longitude", QString::number(geoSettings->value(QString("gpsFix%1_lon").arg(i)).toInt() / 1000000.0));
|
||||
QString name(geoSettings->value(QString("gpsFix%1_name").arg(i)).toString());
|
||||
if (name.isEmpty())
|
||||
name = "Auto-created dive";
|
||||
data.addQueryItem("dive_name", name);
|
||||
status(data.toString(QUrl::FullyEncoded).toUtf8());
|
||||
QNetworkRequest request;
|
||||
request.setUrl(url);
|
||||
|
|
Loading…
Add table
Reference in a new issue