mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
edit: remove multi-dive version of edit information
The "dive is currently" edited is only shown when the profile is edited. This affects only the current dive and therefore a message saying that multiple dives are edited makes no sense. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6288b2a619
commit
5f858e137d
1 changed files with 2 additions and 5 deletions
|
@ -220,11 +220,8 @@ void MainTab::enableEdition(EditMode newEditMode)
|
||||||
ui.tabWidget->setTabEnabled(5, false);
|
ui.tabWidget->setTabEnabled(5, false);
|
||||||
|
|
||||||
ui.dateEdit->setEnabled(true);
|
ui.dateEdit->setEnabled(true);
|
||||||
if (amount_selected > 1) {
|
displayMessage(tr("This dive is being edited."));
|
||||||
displayMessage(tr("Multiple dives are being edited."));
|
|
||||||
} else {
|
|
||||||
displayMessage(tr("This dive is being edited."));
|
|
||||||
}
|
|
||||||
editMode = newEditMode != NONE ? newEditMode : DIVE;
|
editMode = newEditMode != NONE ? newEditMode : DIVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue