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:
Robert.Helling 2015-12-16 22:47:10 +01:00 committed by Dirk Hohndel
parent 4e69ff54b0
commit e7aba9e362

View file

@ -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);