diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-12 16:33:27 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-12 16:33:27 +0900 |
commit | 3c8155880aec5ccba3a25f03e37eb5a4ca00946a (patch) | |
tree | 50b9b43f3930b7d3139febb6be7956807e4e01d2 /qt-ui/maintab.cpp | |
parent | 83a7f1f5b46a4cbd33fcd197f2a956f765def871 (diff) | |
download | subsurface-3c8155880aec5ccba3a25f03e37eb5a4ca00946a.tar.gz |
Make gas selection for add dive work
This now offers the correct gases for which we have cylinders defined.
For both the planner and add dive we still don't end up with the correct
cylinders in the resulting dive. But that's for another commit to fix.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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) |