Qt6: remove QTextCodec

This commit is contained in:
tobtoht 2022-05-24 17:27:39 +02:00
parent 97bb165ae2
commit d6f7255e3e
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -516,7 +516,7 @@ void applicationLogHandler(QtMsgType type, const QMessageLogContext &context, co
}
QString barrayToString(const QByteArray &data) {
return QString(QTextCodec::codecForMib(106)->toUnicode(data));
return QString::fromUtf8(data);
}
QString getAccountName() {