mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
DocsDialog: don't close on pressing enter
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user