mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
UI restructure: cleanup the code when canceling an edit
This was way too complicated because we used to edit a "live" dive that was on the dive list. All we really need to do is systematically make sure that all the widgets are in the correct state. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d97c49ba39
commit
cd5b2a372f
3 changed files with 15 additions and 61 deletions
|
|
@ -908,13 +908,6 @@ void DivePlannerPointsModel::cancelPlan()
|
|||
setPlanMode(NOTHING);
|
||||
diveplan.dp = NULL;
|
||||
|
||||
|
||||
|
||||
|
||||
// somewhere, somehow we need to make sure that the current_dive is displayed again
|
||||
|
||||
|
||||
|
||||
emit planCanceled();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue