mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable undo for the Edit mode on Added Dives.
This enables undo for the edit mode on added dives, it uses the premade backup to fill the old dive with data. :) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
23a193b0d1
commit
0e96c9f62e
4 changed files with 17 additions and 2 deletions
|
@ -507,6 +507,9 @@ void MainTab::rejectChanges()
|
|||
delete_single_dive(selected_dive);
|
||||
DivePlannerPointsModel::instance()->cancelPlan();
|
||||
}
|
||||
else if (editMode == MANUALLY_ADDED_DIVE ){
|
||||
DivePlannerPointsModel::instance()->undoEdition();
|
||||
}
|
||||
struct dive *curr = current_dive;
|
||||
ui.notes->setText(notesBackup[curr].notes );
|
||||
ui.location->setText(notesBackup[curr].location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue