mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Make editing message consistent with button labels
Changes Ok button to a Save button Modifies editing messages to reference buttons Save and Cancel. Fixes #245 Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
092e8463fe
commit
0e9cd09442
2 changed files with 8 additions and 8 deletions
|
@ -130,20 +130,20 @@ void MainTab::enableEdition(EditMode newEditMode)
|
|||
|
||||
if (mainWindow() && mainWindow()->dive_list()->selectedTrips.count() == 1) {
|
||||
// we are editing trip location and notes
|
||||
ui.diveNotesMessage->setText(tr("This trip is being edited. Select Save or Undo when ready."));
|
||||
ui.diveNotesMessage->setText(tr("This trip is being edited. Select Save or Cancel when done."));
|
||||
ui.diveNotesMessage->animatedShow();
|
||||
ui.diveEquipmentMessage->setText(tr("This trip is being edited. Select Save or Undo when ready."));
|
||||
ui.diveEquipmentMessage->setText(tr("This trip is being edited. Select Save or Cancel when done."));
|
||||
ui.diveEquipmentMessage->animatedShow();
|
||||
notesBackup[NULL].notes = ui.notes->toPlainText();
|
||||
notesBackup[NULL].location = ui.location->text();
|
||||
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."));
|
||||
ui.diveNotesMessage->setText(tr("Multiple dives are being edited. Select Save or Cancel when done."));
|
||||
ui.diveEquipmentMessage->setText(tr("Multiple dives are being edited. Select Save or Cancel when done."));
|
||||
} 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->setText(tr("This dive is being edited. Select Save or Cancel when done."));
|
||||
ui.diveEquipmentMessage->setText(tr("This dive is being edited. Select Save or Cancel when done."));
|
||||
}
|
||||
ui.diveNotesMessage->animatedShow();
|
||||
ui.diveEquipmentMessage->animatedShow();
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
<item row="15" column="0" colspan="2">
|
||||
<widget class="QDialogButtonBox" name="notesButtonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -333,7 +333,7 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QDialogButtonBox" name="equipmentButtonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Add table
Reference in a new issue