]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Qt6: remove QTextCodec
authortobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 15:15:36 +0000 (17:15 +0200)
committertobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 15:15:36 +0000 (17:15 +0200)
src/model/WalletKeysFilesModel.cpp

index 4fe4bdcb7ff62b6ee7600179f3ee930941cc449f..fd2f80b0e5a362f247d79f22095fa36b3a7acb73 100644 (file)
@@ -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;