gui: IPCPreviewClient: Raise error signal() instead of exception

This commit is contained in:
Albert S. 2022-05-30 00:05:04 +02:00
γονέας 11af6e530e
υποβολή 4aa850d5ed
1 αρχεία άλλαξαν με 2 προσθήκες και 1 διαγραφές

@ -84,7 +84,8 @@ void IPCPreviewClient::start(RenderConfig config, const QVector<RenderTarget> &t
} while(!stream.commitTransaction() && socket->state() == QLocalSocket::ConnectedState);
if(numTarget != targets.count())
{
throw std::runtime_error("Server reports less targets than it should");
emit error("IPC Error: Server reports less targets than it should");
return;
}
}
else