mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
DocsDialog: don't close on pressing enter
This commit is contained in:
parent
1ac76ddcee
commit
d1f4dfb0b8
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ DocsDialog::DocsDialog(QWidget *parent)
|
|||
this->updateHighlights(ui->search->text());
|
||||
});
|
||||
|
||||
// Pressing 'enter' in the search box shouldn't close the dialog
|
||||
QPushButton *closeButton = ui->buttonBox->button(QDialogButtonBox::Close);
|
||||
if (closeButton) {
|
||||
closeButton->setAutoDefault(false);
|
||||
}
|
||||
|
||||
this->showDoc("report_an_issue");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue