mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Don't reset panels while editing a dive
MANUALLY_ADDED_DIVE is a different flavor of ADD mode (in both cases we are in "planner mode"), so bail out for that as well. See #379 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
57f85a773a
commit
3fb3bd60b6
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ bool MainTab::isEditing()
|
|||
void MainTab::updateDiveInfo(int dive)
|
||||
{
|
||||
// don't execute this while adding a dive
|
||||
if (editMode == ADD)
|
||||
if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE)
|
||||
return;
|
||||
if (!isEnabled() && dive != -1)
|
||||
setEnabled(true);
|
||||
|
|
Loading…
Reference in a new issue