mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue