diff options
author | Robert.Helling <Helling@th-nb-tmpmbp05.fritz.box> | 2015-12-16 22:47:10 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-17 07:38:26 -0800 |
commit | e7aba9e3620b3759fa7ac55f906de08367623b74 (patch) | |
tree | c653abdd4fa958b5dde8966a62a819ed7cc0a55d /qt-models/diveplannermodel.cpp | |
parent | 4e69ff54b0b795fb17630ef678c84c656910062d (diff) | |
download | subsurface-e7aba9e3620b3759fa7ac55f906de08367623b74.tar.gz |
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>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |