summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-30 15:55:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commit96d87273995a6af35d90efb1190ff653e4c03d02 (patch)
treef115a9ccd821cab753f2863fa86f9f08cd20bbd4 /desktop-widgets/command.cpp
parent26901a8dbd91a18689199361541f9d1f90d56e4e (diff)
downloadsubsurface-96d87273995a6af35d90efb1190ff653e4c03d02.tar.gz
Undo: use dive * instead of unique index in renumber-dives
Now, that pointers to dives are stable, we might just as well use dive * instead of the unique-id. This also affects the merge-dive command, as this uses the same renumbering machinery. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command.cpp')
-rw-r--r--desktop-widgets/command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp
index fe16f1898..54ca2d39f 100644
--- a/desktop-widgets/command.cpp
+++ b/desktop-widgets/command.cpp
@@ -21,7 +21,7 @@ void shiftTime(const QVector<dive *> &changedDives, int amount)
execute(new ShiftTime(changedDives, amount));
}
-void renumberDives(const QVector<QPair<int, int>> &divesToRenumber)
+void renumberDives(const QVector<QPair<dive *, int>> &divesToRenumber)
{
execute(new RenumberDives(divesToRenumber));
}