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>
This commit is contained in:
parent
ae05498d94
commit
9b1a3e09d1
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user