From 43e89fcef5af09c732c4f3504cb6e766bd8bec37 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 17:15:36 +0200 Subject: [PATCH] Qt6: remove QTextCodec --- src/model/WalletKeysFilesModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.52.0