cleanup: un-singletonize RenumberDialog

There is no reason that this dialog is a singleton. Since it is modal,
it can be created on demand. This simplifies code, because the mode
(selected-only or all-dives) can be set in the constructor.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-05-27 14:00:47 +02:00 committed by Dirk Hohndel
parent 79f90effe9
commit 25f1bc488f
4 changed files with 16 additions and 29 deletions

View file

@ -921,8 +921,8 @@ void MainWindow::on_actionAddDive_triggered()
void MainWindow::on_actionRenumber_triggered()
{
RenumberDialog::instance()->renumberOnlySelected(false);
RenumberDialog::instance()->show();
RenumberDialog dialog(false, this);
dialog.exec();
}
void MainWindow::on_actionAutoGroup_triggered()