summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 10:42:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 10:42:56 -0700
commit0f906dad6ff7063cb46f33e1645433b38f75a68d (patch)
treedf3d5a0b88067173097b382b3d0b9715788e418f /qt-ui/maintab.cpp
parent9a5ac0d3ac14fc4088e05a523c0d82fcfaf200aa (diff)
downloadsubsurface-0f906dad6ff7063cb46f33e1645433b38f75a68d.tar.gz
Don't reset editMode when refreshing the display
Just because we want to update the latest information on the Notes tab doesn't mean we are done editing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index bbaf170d3..c9a606dd3 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -453,6 +453,7 @@ void MainTab::showLocation()
void MainTab::updateDiveInfo(bool clear)
{
+ EditMode rememberEM = editMode;
// don't execute this while adding / planning a dive
if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner())
return;
@@ -742,7 +743,7 @@ void MainTab::updateDiveInfo(bool clear)
ui.visibility->setCurrentStars(0);
ui.location->clear();
}
- editMode = NONE;
+ editMode = rememberEM;
ui.cylinders->view()->hideColumn(CylindersModel::DEPTH);
if (get_dive_dc(&displayed_dive, dc_number)->divemode == CCR)
ui.cylinders->view()->showColumn(CylindersModel::USE);