Skip to content

Commit

Permalink
Debugger: Fix Double Click Memory address taking to address 0
Browse files Browse the repository at this point in the history
Fixed issue where double clicking memory addresses in the search results would take the user to memory address 0 since the values are now strings rather than direct u32 values.
  • Loading branch information
Daniel-McCarthy committed Nov 18, 2023
1 parent e8fbb09 commit 1c429fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2-qt/Debugger/CpuWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ CpuWidget::CpuWidget(QWidget* parent, DebugInterface& cpu)

connect(m_ui.btnSearch, &QPushButton::clicked, this, &CpuWidget::onSearchButtonClicked);
connect(m_ui.btnFilterSearch, &QPushButton::clicked, this, &CpuWidget::onSearchButtonClicked);
connect(m_ui.listSearchResults, &QListWidget::itemDoubleClicked, [this](QListWidgetItem* item) { m_ui.memoryviewWidget->gotoAddress(item->data(256).toUInt()); });
connect(m_ui.listSearchResults, &QListWidget::itemDoubleClicked, [this](QListWidgetItem* item) { m_ui.memoryviewWidget->gotoAddress(item->text().toUInt(nullptr, 16)); });
connect(m_ui.cmbSearchType, &QComboBox::currentIndexChanged, [this](int i) {
if (i < 4)
m_ui.chkSearchHex->setEnabled(true);
Expand Down

0 comments on commit 1c429fd

Please sign in to comment.