From 6c908f8ddb8a005a7306022c4717313d608d3eca Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 13 Aug 2021 10:56:11 +0200 Subject: [PATCH] DolphinQt: Set default focus for NewBreakpointDialog I found it a little bit annoying that you can't start typing the desired address immediately after opening the window. Also getting rid of the window's ? button while I'm at it. --- Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp index e75f618ea6..6a1a3eff7b 100644 --- a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp @@ -19,6 +19,7 @@ NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent) : QDialog(parent), m_parent(parent) { + setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowTitle(tr("New Breakpoint")); CreateWidgets(); ConnectWidgets(); @@ -102,6 +103,8 @@ void NewBreakpointDialog::CreateWidgets() layout->addWidget(m_buttons); setLayout(layout); + + m_instruction_address->setFocus(); } void NewBreakpointDialog::ConnectWidgets()