aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-30 10:33:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commit63b65a7e20615d7e049ab09ae7dc6053d705c04b (patch)
tree870e1872e70cea37eabcedaea5564721cab79ed4 /desktop-widgets/command_divelist.h
parentec7d85835fb26ee9c0a9c780907441c312d7ac3f (diff)
downloadsubsurface-63b65a7e20615d7e049ab09ae7dc6053d705c04b.tar.gz
Undo: implement autogrouping of trips in DiveAdd
If the autogroup flag is set, search for appropriate trips in DiveAdd() and add the dive to this trip. If no trip exists, add a new trip. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_divelist.h')
-rw-r--r--desktop-widgets/command_divelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command_divelist.h b/desktop-widgets/command_divelist.h
index e09d3bdc6..69824ce9f 100644
--- a/desktop-widgets/command_divelist.h
+++ b/desktop-widgets/command_divelist.h
@@ -40,7 +40,7 @@ struct DivesToTrip
class AddDive : public Base {
public:
- AddDive(dive *dive);
+ AddDive(dive *dive, bool autogroup);
private:
void undo() override;
void redo() override;