diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-05 15:57:24 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-05 15:57:24 +0900 |
commit | 0f66e7a0253c8377a17e866f059b43d492329865 (patch) | |
tree | 41b2a57ac47908892d3918f60418ce7829a50b99 /qt-ui/maintab.cpp | |
parent | e90f5c28df8e609c22ff2f7d52a00b56c5eaa1db (diff) | |
download | subsurface-0f66e7a0253c8377a17e866f059b43d492329865.tar.gz |
Show a different message when editing more than one dive
I still wonder if we have all the semantics correct for multi dive
editing. This will need more testing.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 9 |
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. |