ipc: fix Qt deprecation warning with 5.15.1 beta

This commit is contained in:
selsta 2020-08-26 02:58:11 +02:00
parent e65159163d
commit 1d2840f8b5
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -76,7 +76,7 @@ bool IPC::saveCommand(QString cmdString){
QLocalSocket ls; QLocalSocket ls;
QByteArray buffer; QByteArray buffer;
buffer = buffer.append(cmdString); buffer = buffer.append(cmdString.toUtf8());
QString socketFilePath = this->socketFile().filePath(); QString socketFilePath = this->socketFile().filePath();
ls.connectToServer(socketFilePath, QIODevice::WriteOnly); ls.connectToServer(socketFilePath, QIODevice::WriteOnly);