From 995429b77edfe0f45a25ea23ec933c3c0753ceef Mon Sep 17 00:00:00 2001 From: xarkes Date: Thu, 1 Mar 2018 17:06:13 +0100 Subject: [PATCH] Fix scr.color int value --- src/dialogs/XrefsDialog.cpp | 4 ++-- src/widgets/SidebarWidget.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dialogs/XrefsDialog.cpp b/src/dialogs/XrefsDialog.cpp index f08328a4..0f2d18bc 100644 --- a/src/dialogs/XrefsDialog.cpp +++ b/src/dialogs/XrefsDialog.cpp @@ -169,7 +169,7 @@ void XrefsDialog::updatePreview(RVA addr) TempConfig tempConfig; tempConfig.set("scr.html", true); - tempConfig.set("scr.color", true); + tempConfig.set("scr.color", COLOR_MODE_16M); QString disass; @@ -196,7 +196,7 @@ void XrefsDialog::fillRefsForAddress(RVA addr, QString name, bool whole_function { TempConfig tempConfig; tempConfig.set("scr.html", false); - tempConfig.set("scr.color", false); + tempConfig.set("scr.color", COLOR_MODE_DISABLED); this->addr = addr; this->func_name = func_name; diff --git a/src/widgets/SidebarWidget.cpp b/src/widgets/SidebarWidget.cpp index ab695975..f24f602d 100644 --- a/src/widgets/SidebarWidget.cpp +++ b/src/widgets/SidebarWidget.cpp @@ -145,7 +145,7 @@ void SidebarWidget::fillRefs(QList refs, QList { TempConfig tempConfig; tempConfig.set("scr.html", false) - .set("scr.color", false); + .set("scr.color", COLOR_MODE_DISABLED); ui->xrefFromTreeWidget->clear(); for (int i = 0; i < refs.size(); ++i) @@ -196,7 +196,7 @@ void SidebarWidget::fillOffsetInfo(QString off) { TempConfig tempConfig; tempConfig.set("scr.html", false) - .set("scr.color", false); + .set("scr.color", COLOR_MODE_DISABLED); ui->offsetTreeWidget->clear(); QString raw = Core()->getOffsetInfo(off);