diff options
-rw-r--r-- | qt-ui/maintab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 07c21b2b5..fb37992b1 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -223,6 +223,7 @@ void MainTab::enableEdition(EditMode newEditMode) if (current_dive == NULL || editMode != NONE) return; if ((newEditMode == DIVE || newEditMode == NONE) && + current_dive->dc.model && strcmp(current_dive->dc.model, "manually added dive") == 0) { // editCurrentDive will call enableEdition with newEditMode == MANUALLY_ADDED_DIVE // so exit this function here after editCurrentDive() returns |