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:
Dirk Hohndel 2013-12-25 13:02:38 -08:00
parent 57f85a773a
commit 3fb3bd60b6

View file

@ -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);