diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-18 21:33:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-18 21:33:04 -0700 |
commit | ba30d070c92e6b634df86007ea27ca040682171b (patch) | |
tree | 5dd661a9626e28d10658e88c46dccb9d91c76238 /qt-ui/maintab.cpp | |
parent | 046eacabe529c2b064a89d55a86689ec4dda37e9 (diff) | |
download | subsurface-ba30d070c92e6b634df86007ea27ca040682171b.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |