summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-19 08:42:58 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-19 08:42:58 -0700
commit9b1a3e09d170275156d75e8daad65dde7ff4735d (patch)
treedbd8965ab55ee7650b7dfa421a7f6f9617af226a
parentae05498d94337f42b396895be2745c4b22e4829a (diff)
downloadsubsurface-9b1a3e09d170275156d75e8daad65dde7ff4735d.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 3 insertions, 1 deletions
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
}