mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e90f5c28df
commit
0f66e7a025
1 changed files with 7 additions and 2 deletions
|
@ -136,10 +136,15 @@ void MainTab::enableEdition(EditMode newEditMode)
|
||||||
notesBackup[NULL].notes = ui.notes->toPlainText();
|
notesBackup[NULL].notes = ui.notes->toPlainText();
|
||||||
notesBackup[NULL].location = ui.location->text();
|
notesBackup[NULL].location = ui.location->text();
|
||||||
editMode = TRIP;
|
editMode = TRIP;
|
||||||
|
} else {
|
||||||
|
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 {
|
} else {
|
||||||
ui.diveNotesMessage->setText(tr("This dive is being edited. Select Save or Undo when ready."));
|
ui.diveNotesMessage->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->setText(tr("This dive is being edited. Select Save or Undo when ready."));
|
||||||
|
}
|
||||||
|
ui.diveNotesMessage->animatedShow();
|
||||||
ui.diveEquipmentMessage->animatedShow();
|
ui.diveEquipmentMessage->animatedShow();
|
||||||
|
|
||||||
// We may be editing one or more dives here. backup everything.
|
// We may be editing one or more dives here. backup everything.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue