diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-25 13:02:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-25 13:06:29 -0800 |
commit | 3fb3bd60b6e3b9cc0671439f5afafb141c497ebb (patch) | |
tree | 6401736676c8e34f6bbb7cd745684e9375d508c1 /qt-ui | |
parent | 57f85a773a7e20bc3f40238c366b610f078690cd (diff) | |
download | subsurface-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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
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); |