mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Discard all temporary sites after merging with dive list
After we import all the GPS fixes from the Subsurfae webservice we delete the ones that didn't match any dives. The algorithm skipped every other one by mistake. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e19fa0a9f3
commit
74f3961b05
1 changed files with 3 additions and 1 deletions
|
@ -382,8 +382,10 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
|
|||
usedUuids.insert(d->dive_site_uuid);
|
||||
}
|
||||
for_each_dive_site(i, ds) {
|
||||
if (!usedUuids.contains(ds->uuid) && same_string(ds->notes, "SubsurfaceWebservice"))
|
||||
if (!usedUuids.contains(ds->uuid) && same_string(ds->notes, "SubsurfaceWebservice")) {
|
||||
delete_dive_site(ds->uuid);
|
||||
i--; // otherwise we skip one site
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case QDialogButtonBox::RejectRole:
|
||||
|
|
Loading…
Add table
Reference in a new issue