aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-25 13:02:38 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-25 13:06:29 -0800
commit3fb3bd60b6e3b9cc0671439f5afafb141c497ebb (patch)
tree6401736676c8e34f6bbb7cd745684e9375d508c1
parent57f85a773a7e20bc3f40238c366b610f078690cd (diff)
downloadsubsurface-3fb3bd60b6e3b9cc0671439f5afafb141c497ebb.tar.gz
Don't reset panels while editing a dive
MANUALLY_ADDED_DIVE is a different flavor of ADD mode (in both cases we are in "planner mode"), so bail out for that as well. See #379 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 03d75bd98..ae4cf534c 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -357,7 +357,7 @@ bool MainTab::isEditing()
void MainTab::updateDiveInfo(int dive)
{
// don't execute this while adding a dive
- if (editMode == ADD)
+ if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE)
return;
if (!isEnabled() && dive != -1)
setEnabled(true);