From 200a6949d2da6e9f70352415a4dd93d52a140fab Mon Sep 17 00:00:00 2001 From: a1ext Date: Thu, 29 Nov 2018 00:15:53 +0300 Subject: [PATCH] Fixed Dashboard file name displaying: due to utf8 json serialization in radare2 has been fixed, we don't need encoding kludge anymore (#969) --- src/widgets/Dashboard.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/widgets/Dashboard.cpp b/src/widgets/Dashboard.cpp index 7e7bf9c8..f0f3fe3f 100644 --- a/src/widgets/Dashboard.cpp +++ b/src/widgets/Dashboard.cpp @@ -38,13 +38,7 @@ void Dashboard::updateContents() QJsonObject item = docu.object()["core"].toObject(); QJsonObject item2 = docu.object()["bin"].toObject(); -#ifdef Q_OS_WIN - QString fname = item["file"].toString(); - fname = QString::fromUtf8(fname.toLatin1()); -#else // Q_OS_WIN - QString fname = item["file"].toString(); -#endif // Q_OS_WIN - this->ui->fileEdit->setText(fname); + this->ui->fileEdit->setText(item["file"].toString()); this->ui->formatEdit->setText(item["format"].toString()); this->ui->modeEdit->setText(item["mode"].toString()); this->ui->typeEdit->setText(item["type"].toString());