From e7aba9e3620b3759fa7ac55f906de08367623b74 Mon Sep 17 00:00:00 2001 From: "Robert.Helling" Date: Wed, 16 Dec 2015 22:47:10 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models') diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 5e2315318..eeae69a87 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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); -- cgit v1.2.3-70-g09d2