From 63b65a7e20615d7e049ab09ae7dc6053d705c04b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 30 Jul 2018 10:33:25 +0200 Subject: 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 --- desktop-widgets/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/command.h') diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h index 213d8bcda..924365806 100644 --- a/desktop-widgets/command.h +++ b/desktop-widgets/command.h @@ -15,7 +15,7 @@ QAction *undoAction(QObject *parent); // Create an undo action. QAction *redoAction(QObject *parent); // Create an redo action. // Dive-list related commands -void addDive(dive *d); +void addDive(dive *d, bool autogroup); void deleteDive(const QVector &divesToDelete); void shiftTime(const QVector &changedDives, int amount); void renumberDives(const QVector> &divesToRenumber); -- cgit v1.2.3-70-g09d2