diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 08:42:58 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 08:42:58 -0700 |
commit | 9b1a3e09d170275156d75e8daad65dde7ff4735d (patch) | |
tree | dbd8965ab55ee7650b7dfa421a7f6f9617af226a | |
parent | ae05498d94337f42b396895be2745c4b22e4829a (diff) | |
download | subsurface-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.cpp | 4 |
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 } |