[PATCH] Unselect source dive when saving a copy in replan

Robert C. Helling helling at atdotde.de
Thu Dec 17 12:59:00 PST 2015


From: "Robert C. Helling" <helling at atdotde.de>

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 at atdotde.de>
---
 qt-models/diveplannermodel.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 5e23153..eeae69a 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);
-- 
2.5.4 (Apple Git-61)



More information about the subsurface mailing list