summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 15:17:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 15:18:15 -0700
commit0d58cfb6411080053e99b0caa042278c19441b9d (patch)
tree91f8e2f1d01d2f57a56379d942e02f0e4933c024 /qt-ui/maintab.cpp
parent0f023791f8e47bae725629954454d7c623ca3c4d (diff)
downloadsubsurface-0d58cfb6411080053e99b0caa042278c19441b9d.tar.gz
Planner: don't try to update the MainTab dive info while in plan mode
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 34be53a90..af8240ed2 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -383,8 +383,8 @@ bool MainTab::isEditing()
void MainTab::updateDiveInfo(int dive)
{
- // don't execute this while adding a dive
- if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE)
+ // don't execute this while adding / planning a dive
+ if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner())
return;
if (!isEnabled() && dive != -1)
setEnabled(true);