mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Unselect source dive when saving a copy in replan
Then the user can select the two copies and merge them as two different computers. Without this, the selection could is screwd up and there is no option to merge in the context menu. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e69ff54b0
commit
e7aba9e362
1 changed files with 1 additions and 0 deletions
|
@ -917,6 +917,7 @@ void DivePlannerPointsModel::createPlan(bool replanCopy)
|
|||
struct dive *copy = alloc_dive();
|
||||
copy_dive(current_dive, copy);
|
||||
copy->id = 0;
|
||||
copy->selected = false;
|
||||
copy->divetrip = NULL;
|
||||
if (current_dive->divetrip)
|
||||
add_dive_to_trip(copy, current_dive->divetrip);
|
||||
|
|
Loading…
Reference in a new issue