From: "Robert C. Helling" <[email protected]>

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 <[email protected]>
---
 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)

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to