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:
Berthold Stoeger 2020-02-27 22:10:43 +01:00
parent 6288b2a619
commit 5f858e137d

View file

@ -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;
} }