profile: automatically enter edit mode

The edit mode was hidden in a context-menu. With fine-grained
undo there seems to be no need to explicitly exit edit mode.

Therefore, always switch to edit mode when displaying a
manually added dive.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-03-11 21:45:46 +01:00
parent 63664061eb
commit dea58bd67c
4 changed files with 13 additions and 16 deletions

View file

@ -48,7 +48,7 @@ private:
void editDive();
void exitEditMode();
std::unique_ptr<dive, DiveDeleter> editedDive;
int editedDc;
unsigned int editedDc;
dive *originalDive;
bool placingCommand;
};