From: tobtoht Date: Wed, 9 Oct 2024 17:52:23 +0000 (+0200) Subject: DocsDialog: don't close on pressing enter X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=d1f4dfb0b8a7f92c3365f6ce2abcb732846fbe08;p=gamesguru%2Ffeather.git DocsDialog: don't close on pressing enter --- diff --git a/src/dialog/DocsDialog.cpp b/src/dialog/DocsDialog.cpp index c86d2f84..2591dffb 100644 --- a/src/dialog/DocsDialog.cpp +++ b/src/dialog/DocsDialog.cpp @@ -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"); }