summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/command_divelist.h')
-rw-r--r--desktop-widgets/command_divelist.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/command_divelist.h b/desktop-widgets/command_divelist.h
index 8cff4f1ef..e09d3bdc6 100644
--- a/desktop-widgets/command_divelist.h
+++ b/desktop-widgets/command_divelist.h
@@ -47,10 +47,12 @@ private:
bool workToBeDone() override;
// For redo
- DiveToAdd diveToAdd;
+ // Note: we use a vector even though we add only a single dive, so
+ // that we can reuse the multi-dive functions of the other commands.
+ std::vector<DiveToAdd> divesToAdd;
// For undo
- dive *diveToRemove;
+ std::vector<dive *> divesToRemove;
};
class DeleteDive : public Base {