summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/MemoryWidget.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/MemoryWidget.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/MemoryWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/MemoryWidget.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp
index fe1307ec41..04320c8e0d 100644
--- a/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/MemoryWidget.cpp
@@ -6,6 +6,7 @@
#include <optional>
#include <string>
+#include <QButtonGroup>
#include <QCheckBox>
#include <QGroupBox>
#include <QHBoxLayout>
@@ -103,6 +104,12 @@ void MemoryWidget::CreateWidgets()
m_address_splitter->setCollapsible(0, false);
m_address_splitter->setStretchFactor(1, 2);
+ auto* search_type_group = new QButtonGroup(this);
+ m_find_ascii = new QRadioButton(tr("ASCII"));
+ m_find_hex = new QRadioButton(tr("Hex string"));
+ search_type_group->addButton(m_find_ascii);
+ search_type_group->addButton(m_find_hex);
+
// Dump
m_dump_mram = new QPushButton(tr("Dump &MRAM"));
m_dump_exram = new QPushButton(tr("Dump &ExRAM"));
@@ -116,8 +123,6 @@ void MemoryWidget::CreateWidgets()
m_find_next = new QPushButton(tr("Find &Next"));
m_find_previous = new QPushButton(tr("Find &Previous"));
- m_find_ascii = new QRadioButton(tr("ASCII"));
- m_find_hex = new QRadioButton(tr("Hex string"));
m_result_label = new QLabel;
search_layout->addWidget(m_find_next);