diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-20 06:11:32 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-20 06:11:32 +0900 |
commit | b303f217a9d66ef031c58534b3796ddefbe362c5 (patch) | |
tree | 7c127cdffb59e42a68be4f4a15ebb35efb262f88 /qt-ui/mainwindow.cpp | |
parent | 4d14059d7c309534d9932375958b561fa464bde2 (diff) | |
download | subsurface-b303f217a9d66ef031c58534b3796ddefbe362c5.tar.gz |
Dive list: add context menu function to renumber dive(s)
No attempt is made to ensure that what the user does is sane. So this can
result in duplicate numbers, non-consecutive numbers, non-monotonous
numbers, whatever floats the users boat.
You can renumber a single dive or all selected dives (with a starting
number given that is applied to the oldest selected dive and then for each
newer selected dive that number is incremented by one).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index efa50bc0c..6ff0a68a4 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -444,6 +444,7 @@ void MainWindow::on_actionAddDive_triggered() void MainWindow::on_actionRenumber_triggered() { + RenumberDialog::instance()->renumberOnlySelected(false); RenumberDialog::instance()->show(); } |