summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-02-18 21:20:14 +0100
committerGitHub <noreply@github.com>2022-02-18 21:20:14 +0100
commit9ebfdff6b4c999517bd149ecfa18abb9019f1c9f (patch)
treebbd0d4906cda3ac57c325beb519fc174f482ca57 /Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
parent35b436bd6b17fb5903e534975f81cf6f6d8b08e2 (diff)
parentf2f9df7541720217b6375b78cc7b8e70e0b958f9 (diff)
Merge pull request #10423 from Pokechu22/improperly-exclusive-radio-buttons
Fix improperly exclusive radio buttons
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
index 6a1a3eff7b..3e8bfae69a 100644
--- a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
+++ b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp
@@ -3,6 +3,7 @@
#include "DolphinQt/Debugger/NewBreakpointDialog.h"
+#include <QButtonGroup>
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QGridLayout>
@@ -31,10 +32,12 @@ NewBreakpointDialog::NewBreakpointDialog(BreakpointWidget* parent)
void NewBreakpointDialog::CreateWidgets()
{
m_buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
+ auto* type_group = new QButtonGroup(this);
// Instruction BP
m_instruction_bp = new QRadioButton(tr("Instruction Breakpoint"));
m_instruction_bp->setChecked(true);
+ type_group->addButton(m_instruction_bp);
m_instruction_box = new QGroupBox;
m_instruction_address = new QLineEdit;
@@ -45,11 +48,15 @@ void NewBreakpointDialog::CreateWidgets()
// Memory BP
m_memory_bp = new QRadioButton(tr("Memory Breakpoint"));
+ type_group->addButton(m_memory_bp);
m_memory_box = new QGroupBox;
+ auto* memory_type_group = new QButtonGroup(this);
m_memory_use_address = new QRadioButton(tr("Address"));
m_memory_use_address->setChecked(true);
+ memory_type_group->addButton(m_memory_use_address);
// i18n: A range of memory addresses
m_memory_use_range = new QRadioButton(tr("Range"));
+ memory_type_group->addButton(m_memory_use_range);
m_memory_address_from = new QLineEdit;
m_memory_address_to = new QLineEdit;
m_memory_address_from_label = new QLabel; // Set by OnAddressTypeChanged