From 0f906dad6ff7063cb46f33e1645433b38f75a68d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 Jul 2015 10:42:56 -0700 Subject: 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 --- qt-ui/maintab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2