mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Trip editing: zero out potential previous edits
This was silly; if we rely on this to be zero to indicate no change then we better zero it out when we start editing. Fixes #805 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6d1e44f05c
commit
71f3a29819
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ void MainTab::enableEdition(EditMode newEditMode)
|
|||
if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {
|
||||
// we are editing trip location and notes
|
||||
displayMessage(tr("This trip is being edited."));
|
||||
memset(&displayedTrip, 0, sizeof(displayedTrip));
|
||||
currentTrip = current_dive->divetrip;
|
||||
ui.dateEdit->setEnabled(false);
|
||||
editMode = TRIP;
|
||||
|
|
Loading…
Add table
Reference in a new issue