Fixed Dashboard file name displaying: due to utf8 json serialization in radare2 has been fixed, we don't need encoding kludge anymore (#969)

This commit is contained in:
a1ext 2018-11-29 00:15:53 +03:00 committed by xarkes
parent 3096d24998
commit 200a6949d2

View File

@ -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());