From 9b1a3e09d170275156d75e8daad65dde7ff4735d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 19 May 2013 08:42:58 -0700 Subject: Fix edit behavior Commit 7b00668b400b ("Improve the Dirk edit mode.") had what looks like an "autocomplete" typo. This also stops us from changing the text on the button that in this edit mode is always just the "OK" button. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 378ba8721..c5c8ebda0 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -292,7 +292,9 @@ void MainTab::on_resetNotes_clicked() if (!ui->editNotes->isChecked()) return; +#if EDIT_STYLE ui->editNotes->setText(tr("edit")); +#endif ui->buddy->setText(notesBackup.buddy); ui->suit->setText(notesBackup.suit); ui->notes->setText(notesBackup.notes); @@ -311,7 +313,7 @@ void MainTab::on_resetNotes_clicked() mainWindow()->dive_list()->setEnabled(true); #if !EDIT_STYLE - ui->editCylinder->hide(); + ui->editNotes->hide(); ui->resetNotes->hide(); #endif } -- cgit v1.2.3-70-g09d2