mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: on edit only request location if user checks the box
The code inexplicably always checked for a gps location. Oops. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a74175324a
commit
4abe73ff2a
1 changed files with 19 additions and 17 deletions
|
@ -374,6 +374,7 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location
|
|||
ds = get_dive_site_by_uuid(create_dive_site(qPrintable(location), d->when));
|
||||
d->dive_site_uuid = ds->uuid;
|
||||
}
|
||||
if (!gps.isEmpty()) {
|
||||
QString gpsString = getCurrentPosition();
|
||||
if (gpsString != QString("waiting for the next gps location")) {
|
||||
qDebug() << "from commitChanges call to getCurrentPosition returns" << gpsString;
|
||||
|
@ -394,6 +395,7 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location
|
|||
} else {
|
||||
qDebug() << "still don't have a position - will need to implement some sort of callback";
|
||||
}
|
||||
}
|
||||
if (get_dive_duration_string(d->duration.seconds, tr("h:"), tr("min")) != duration) {
|
||||
diveChanged = true;
|
||||
int h = 0, m = 0, s = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue