From a05dd6b7e6b7ffeedc295d5c54c21eeab31c2427 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 31 Jan 2022 10:02:16 -0800 Subject: [PATCH] MemoryWidget: Fix improperly behaving radio buttons --- Source/Core/DolphinQt/Debugger/MemoryWidget.cpp | 9 +++++++-- 1 file 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 #include +#include #include #include #include @@ -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);