diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 7bbcf3fc2..884f76c07 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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) { |