Merge pull request #10023 from JosJuice/qt-breakpoint-focus

DolphinQt: Set default focus for NewBreakpointDialog
This commit is contained in:
Mai M 2021-08-13 13:18:58 -04:00 committed by GitHub
commit 7cc8437050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@
NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent) NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
: QDialog(parent), m_parent(parent) : QDialog(parent), m_parent(parent)
{ {
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("New Breakpoint")); setWindowTitle(tr("New Breakpoint"));
CreateWidgets(); CreateWidgets();
ConnectWidgets(); ConnectWidgets();
@ -102,6 +103,8 @@ void NewBreakpointDialog::CreateWidgets()
layout->addWidget(m_buttons); layout->addWidget(m_buttons);
setLayout(layout); setLayout(layout);
m_instruction_address->setFocus();
} }
void NewBreakpointDialog::ConnectWidgets() void NewBreakpointDialog::ConnectWidgets()