mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Don't crash on new dive site
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a9642d5751
commit
fec33cee93
1 changed files with 4 additions and 0 deletions
|
@ -813,6 +813,10 @@ void MainTab::updateDisplayedDiveSite()
|
|||
const uint32_t new_uuid = ui.location->currDiveSiteUuid();
|
||||
|
||||
qDebug() << "Updating Displayed Dive Site";
|
||||
if (new_uuid == RECENTLY_ADDED_DIVESITE) {
|
||||
qDebug() << "New dive site selected, don't try to update something that doesn't exists yet.";
|
||||
return;
|
||||
}
|
||||
|
||||
if(orig_uuid) {
|
||||
if (new_uuid && orig_uuid != new_uuid) {
|
||||
|
|
Loading…
Add table
Reference in a new issue