diff --git a/src/widgets/Dashboard.cpp b/src/widgets/Dashboard.cpp index c57723e5..f9ea074b 100644 --- a/src/widgets/Dashboard.cpp +++ b/src/widgets/Dashboard.cpp @@ -3,8 +3,10 @@ #include "utils/Helpers.h" #include "utils/JsonModel.h" #include "utils/JsonTreeItem.h" +#include "utils/TempConfig.h" #include "dialogs/VersionInfoDialog.h" + #include "MainWindow.h" #include @@ -60,7 +62,7 @@ void Dashboard::updateContents() this->ui->relroEdit->setText(relro); } - this->ui->baddrEdit->setText(QString::number(item2["baddr"].toDouble())); + this->ui->baddrEdit->setText("0x"+QString::number(Core()->get_baddr(), 16)); if (item2["va"].toBool() == true) { this->ui->vaEdit->setText("True"); @@ -143,8 +145,14 @@ void Dashboard::updateContents() ui->verticalLayout_2->addSpacerItem(spacer); // Add entropy value - QString entropy = Core()->cmd("ph entropy").trimmed(); - ui->lblEntropy->setText(entropy); + { + // Scope for TempConfig + TempConfig tempConfig; + tempConfig.set("io.va", false); + QString entropy = Core()->cmd("ph entropy $s @ 0").trimmed(); + ui->lblEntropy->setText(entropy); + } + // Get stats for the graphs QStringList stats = Core()->getStats();