From ba30d070c92e6b634df86007ea27ca040682171b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 18 May 2013 21:33:04 -0700 Subject: [PATCH] While editing the left button is renamed to "OK" to accept the changes This seemed more logical than keeping it as "edit" and basically having to hit "edit" a second time in order to save a change. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c33ad717b..be079cf31 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -231,9 +231,11 @@ void MainTab::on_editNotes_clicked(bool edit) notesBackup.divemaster = ui->divemaster->text(); notesBackup.location = ui->location->text(); notesBackup.rating = ui->rating->currentStars(); + ui->editNotes->setText(tr("OK")); } else{ ui->diveNotesMessage->animatedHide(); + ui->editNotes->setText(tr("edit")); } } @@ -242,6 +244,7 @@ void MainTab::on_resetNotes_clicked() if (!ui->editNotes->isChecked()) return; + ui->editNotes->setText(tr("edit")); ui->buddy->setText(notesBackup.buddy); ui->suit->setText(notesBackup.suit); ui->notes->setText(notesBackup.notes);