Skip to content

Commit

Permalink
DocsDialog: don't close on pressing enter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Oct 9, 2024
1 parent 1ac76dd commit d1f4dfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dialog/DocsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit d1f4dfb

Please sign in to comment.