From: tobtoht Date: Tue, 24 May 2022 15:15:36 +0000 (+0200) Subject: Qt6: remove QTextCodec X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=43e89fcef5af09c732c4f3504cb6e766bd8bec37;p=gamesguru%2Ffeather.git Qt6: remove QTextCodec --- diff --git a/src/model/WalletKeysFilesModel.cpp b/src/model/WalletKeysFilesModel.cpp index 4fe4bdcb..fd2f80b0 100644 --- a/src/model/WalletKeysFilesModel.cpp +++ b/src/model/WalletKeysFilesModel.cpp @@ -98,7 +98,7 @@ void WalletKeysFilesModel::findWallets() { if (Utils::fileExists(basePath + ".address.txt")) { QFile file(basePath + ".address.txt"); file.open(QFile::ReadOnly | QFile::Text); - const QString _address = QTextCodec::codecForMib(106)->toUnicode(file.readAll()); + const QString _address = QString::fromUtf8(file.readAll()); if (!_address.isEmpty()) { addr = _address;