Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10023 from JosJuice/qt-breakpoint-focus
DolphinQt: Set default focus for NewBreakpointDialog
  • Loading branch information
lioncash committed Aug 13, 2021
2 parents a27dbe5 + 6c908f8 commit 7cc8437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
Expand Up @@ -19,6 +19,7 @@
NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
: QDialog(parent), m_parent(parent)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("New Breakpoint"));
CreateWidgets();
ConnectWidgets();
Expand Down Expand Up @@ -102,6 +103,8 @@ void NewBreakpointDialog::CreateWidgets()
layout->addWidget(m_buttons);

setLayout(layout);

m_instruction_address->setFocus();
}

void NewBreakpointDialog::ConnectWidgets()
Expand Down

0 comments on commit 7cc8437

Please sign in to comment.