mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive edit: if the user didn't pick a dive site, don't mess with it
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ee2a44235
commit
d85a448ee8
1 changed files with 3 additions and 0 deletions
|
@ -868,6 +868,9 @@ void MainTab::updateDiveSite(int divenr)
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t pickedUuid = ui.location->currDiveSiteUuid();
|
uint32_t pickedUuid = ui.location->currDiveSiteUuid();
|
||||||
|
if (pickedUuid == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const uint32_t origUuid = cd->dive_site_uuid;
|
const uint32_t origUuid = cd->dive_site_uuid;
|
||||||
struct dive_site *origDs = get_dive_site_by_uuid(origUuid);
|
struct dive_site *origDs = get_dive_site_by_uuid(origUuid);
|
||||||
struct dive_site *newDs = NULL;
|
struct dive_site *newDs = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue