mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
9a5ac0d3ac
commit
0f906dad6f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue