From 85c2e32e1692242afedffdcb4ac26f5f8b666d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Tue, 28 Nov 2017 12:22:48 +0100 Subject: [PATCH] Show dst instruction in xrefs from, Fix #113 --- src/dialogs/XrefsDialog.cpp | 2 +- src/widgets/SidebarWidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs/XrefsDialog.cpp b/src/dialogs/XrefsDialog.cpp index 70b1c7f0..cb20eeba 100644 --- a/src/dialogs/XrefsDialog.cpp +++ b/src/dialogs/XrefsDialog.cpp @@ -43,7 +43,7 @@ void XrefsDialog::fillRefs(QList refs, QList x QTreeWidgetItem *tempItem = new QTreeWidgetItem(); tempItem->setText(0, xref.to_str); - tempItem->setText(1, core->disassembleSingleInstruction(xref.from)); + tempItem->setText(1, core->disassembleSingleInstruction(xref.to)); tempItem->setText(2, xrefTypeString(xref.type)); ui->fromTreeWidget->insertTopLevelItem(0, tempItem); } diff --git a/src/widgets/SidebarWidget.cpp b/src/widgets/SidebarWidget.cpp index 0b8d992a..7f9a7bb2 100644 --- a/src/widgets/SidebarWidget.cpp +++ b/src/widgets/SidebarWidget.cpp @@ -169,7 +169,7 @@ void SidebarWidget::fill_refs(QList refs, QListsetText(0, RAddressString(xref.to)); - tempItem->setText(1, Core()->disassembleSingleInstruction(xref.from)); + tempItem->setText(1, Core()->disassembleSingleInstruction(xref.to)); tempItem->setData(0, Qt::UserRole, QVariant::fromValue(xref)); QString tooltip = Core()->cmd("pdi 10 @ " + QString::number(xref.to)).trimmed(); tempItem->setToolTip(0, tooltip);