mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
qt: remove QTextCodec
QTextCodec is removed in Qt6
This commit is contained in:
parent
2e2ae5c88f
commit
5977e61a02
2 changed files with 2 additions and 3 deletions
|
@ -128,7 +128,7 @@ void WalletKeysFilesModel::findWallets(const QString &moneroAccountsDir)
|
|||
if(fileExists(wallet + ".address.txt")){
|
||||
QFile file(wallet + ".address.txt");
|
||||
file.open(QFile::ReadOnly | QFile::Text);
|
||||
QString _address = QTextCodec::codecForMib(106)->toUnicode(file.readAll());
|
||||
QString _address = QString(file.readAll());
|
||||
|
||||
if(!_address.isEmpty()){
|
||||
address = _address;
|
||||
|
|
|
@ -109,8 +109,7 @@ void IPC::handleConnection(){
|
|||
clientConnection, &QLocalSocket::deleteLater);
|
||||
|
||||
clientConnection->waitForReadyRead(2);
|
||||
QByteArray cmdArray = clientConnection->readAll();
|
||||
QString cmdString = QTextCodec::codecForMib(106)->toUnicode(cmdArray); // UTF-8
|
||||
QString cmdString = QString(clientConnection->readAll());
|
||||
qDebug() << cmdString;
|
||||
|
||||
this->parseCommand(cmdString);
|
||||
|
|
Loading…
Reference in a new issue