]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
DocsDialog: don't close on pressing enter
authortobtoht <tob@featherwallet.org>
Wed, 9 Oct 2024 17:52:23 +0000 (19:52 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 9 Oct 2024 17:52:23 +0000 (19:52 +0200)
src/dialog/DocsDialog.cpp

index c86d2f84134418491ade041bfea76114423135a9..2591dffb0b6011d738a6589eb35bbbbc16e8b2a8 100644 (file)
@@ -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");
 }