diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 7ee6e834c..003f0319a 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -261,6 +261,9 @@ bool MainTab::isEditing() void MainTab::updateDiveInfo(int dive) { + // don't execute this while adding a dive + if (editMode == ADD) + return; if (!isEnabled() && dive != -1) setEnabled(true); if (isEnabled() && dive == -1) |