From d6f7255e3ecd7ca00da63bbbfa59cd8179cf732c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 17:27:39 +0200 Subject: [PATCH] Qt6: remove QTextCodec --- src/utils/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 8bcba47..997fb4a 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -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() {