Qt6: remove QTextCodec

This commit is contained in:
tobtoht 2022-05-24 17:15:36 +02:00
parent 4cd7c868ad
commit 43e89fcef5
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View 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;