summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-19 18:20:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-20 21:23:16 -0700
commit879f52180c077e924c7e44eb4c38017606df2834 (patch)
tree6979cb524a8f5ae5aaa1d202690872256a66b483 /desktop-widgets
parent0bc96905bf92de5e7bac88efde181d93d95998f1 (diff)
downloadsubsurface-879f52180c077e924c7e44eb4c38017606df2834.tar.gz
Cleanup: fix a few comments and debug messages
This is just minor fixes that are not user-visible: Fix a few erroneous comments and a debug message. These are copy & paste mistakes and mistakes introduced during code- refactoring. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/command_divelist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp
index eb3de65cd..ddc3d11ce 100644
--- a/desktop-widgets/command_divelist.cpp
+++ b/desktop-widgets/command_divelist.cpp
@@ -381,8 +381,7 @@ AddDive::AddDive(dive *d, bool autogroup, bool newNumber)
d->dc.maxdepth.mm = 0;
fixup_dive(d);
- // Get an owning pointer to a copied or moved dive
- // Note: if move is true, this destroys the old dive!
+ // Get an owning pointer to a moved dive.
OwningDivePtr divePtr(clone_dive(d));
divePtr->selected = false; // If we clone a planned dive, it might have been selected.
// We have to clear the flag, as selections will be managed