mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
79f90effe9
commit
25f1bc488f
4 changed files with 16 additions and 29 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue