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
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -134,6 +134,12 @@ DocsDialog::DocsDialog(QWidget *parent)
this->updateHighlights(ui->search->text()); 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"); this->showDoc("report_an_issue");
} }