mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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)
|
void MainTab::updateDiveInfo(bool clear)
|
||||||
{
|
{
|
||||||
|
EditMode rememberEM = editMode;
|
||||||
// don't execute this while adding / planning a dive
|
// don't execute this while adding / planning a dive
|
||||||
if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner())
|
if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner())
|
||||||
return;
|
return;
|
||||||
|
@ -742,7 +743,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
ui.visibility->setCurrentStars(0);
|
ui.visibility->setCurrentStars(0);
|
||||||
ui.location->clear();
|
ui.location->clear();
|
||||||
}
|
}
|
||||||
editMode = NONE;
|
editMode = rememberEM;
|
||||||
ui.cylinders->view()->hideColumn(CylindersModel::DEPTH);
|
ui.cylinders->view()->hideColumn(CylindersModel::DEPTH);
|
||||||
if (get_dive_dc(&displayed_dive, dc_number)->divemode == CCR)
|
if (get_dive_dc(&displayed_dive, dc_number)->divemode == CCR)
|
||||||
ui.cylinders->view()->showColumn(CylindersModel::USE);
|
ui.cylinders->view()->showColumn(CylindersModel::USE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue