DocsDialog: don't close on pressing enter

This commit is contained in:
tobtoht
2024-10-09 19:52:23 +02:00
parent 1ac76ddcee
commit d1f4dfb0b8
+6
View 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");
}