mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
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:
parent
3096d24998
commit
200a6949d2
@ -38,13 +38,7 @@ void Dashboard::updateContents()
|
|||||||
QJsonObject item = docu.object()["core"].toObject();
|
QJsonObject item = docu.object()["core"].toObject();
|
||||||
QJsonObject item2 = docu.object()["bin"].toObject();
|
QJsonObject item2 = docu.object()["bin"].toObject();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
this->ui->fileEdit->setText(item["file"].toString());
|
||||||
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->formatEdit->setText(item["format"].toString());
|
this->ui->formatEdit->setText(item["format"].toString());
|
||||||
this->ui->modeEdit->setText(item["mode"].toString());
|
this->ui->modeEdit->setText(item["mode"].toString());
|
||||||
this->ui->typeEdit->setText(item["type"].toString());
|
this->ui->typeEdit->setText(item["type"].toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user