Merge pull request #2203 from insanemal/insanemal_qtsocket2

Fix client socket code to match generated messages
This commit is contained in:
Miran Grča
2022-03-07 18:29:29 +01:00
committed by GitHub

View File

@@ -31,8 +31,7 @@ void UnixManagerSocket::readyToRead()
QByteArray line = readLine(); QByteArray line = readLine();
if (line.size()) if (line.size())
{ {
line.resize(line.size() - 2); line.resize(line.size() - 1);
line.push_back('\0');
if (line == "showsettings") if (line == "showsettings")
{ {
emit showsettings(); emit showsettings();