diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-30 10:33:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:22:27 -0700 |
commit | 63b65a7e20615d7e049ab09ae7dc6053d705c04b (patch) | |
tree | 870e1872e70cea37eabcedaea5564721cab79ed4 /desktop-widgets/command.cpp | |
parent | ec7d85835fb26ee9c0a9c780907441c312d7ac3f (diff) | |
download | subsurface-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.cpp')
-rw-r--r-- | desktop-widgets/command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp index a86b1fe76..fe16f1898 100644 --- a/desktop-widgets/command.cpp +++ b/desktop-widgets/command.cpp @@ -6,9 +6,9 @@ namespace Command { // Dive-list related commands -void addDive(dive *d) +void addDive(dive *d, bool autogroup) { - execute(new AddDive(d)); + execute(new AddDive(d, autogroup)); } void deleteDive(const QVector<struct dive*> &divesToDelete) |