mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Renumber ui: make it obvious which dives get renumbered
Using the menu entry or Ctrl-R is designed to renumber all dives, but using the context menu renumbers only the selected dives. With this change it becomes more obvious to the user what's happening. Fixes #942 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4db80aa1a4
commit
754112beb4
2 changed files with 22 additions and 3 deletions
|
@ -137,9 +137,15 @@ RenumberDialog *RenumberDialog::instance()
|
|||
void RenumberDialog::renumberOnlySelected(bool selected)
|
||||
{
|
||||
if (selected && amount_selected == 1)
|
||||
ui.groupBox->setTitle(tr("New number"));
|
||||
ui.renumberText->setText(tr("New number"));
|
||||
else
|
||||
ui.groupBox->setTitle(tr("New starting number"));
|
||||
ui.renumberText->setText(tr("New starting number"));
|
||||
|
||||
if (selected)
|
||||
ui.groupBox->setTitle(tr("Renumber selected dives"));
|
||||
else
|
||||
ui.groupBox->setTitle(tr("Renumber all dives"));
|
||||
|
||||
selectedOnly = selected;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue