summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index b7c0f15c7..54bf35a73 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -137,9 +137,14 @@ void MainTab::enableEdition(EditMode newEditMode)
notesBackup[NULL].location = ui.location->text();
editMode = TRIP;
} else {
- ui.diveNotesMessage->setText(tr("This dive is being edited. Select Save or Undo when ready."));
+ if (amount_selected > 1) {
+ ui.diveNotesMessage->setText(tr("Multiple dives are being edited. Select Save or Undo when ready."));
+ ui.diveEquipmentMessage->setText(tr("Multiple dives are being edited. Select Save or Undo when ready."));
+ } else {
+ ui.diveNotesMessage->setText(tr("This dive is being edited. Select Save or Undo when ready."));
+ ui.diveEquipmentMessage->setText(tr("This dive is being edited. Select Save or Undo when ready."));
+ }
ui.diveNotesMessage->animatedShow();
- ui.diveEquipmentMessage->setText(tr("This dive is being edited. Select Save or Undo when ready."));
ui.diveEquipmentMessage->animatedShow();
// We may be editing one or more dives here. backup everything.