added error messages in text box
This commit is contained in:
parent
af26b8a3d8
commit
2d38d5f10f
1 changed files with 6 additions and 3 deletions
|
@ -1689,11 +1689,14 @@ void libreMediaServer::stdout() {
|
|||
QByteArray out = m_pd_video->readAllStandardError();
|
||||
if (out.size() < 7) {return;}
|
||||
out.chop(1);
|
||||
if (out.indexOf("ola2pd: Can not read DMX!",0) != -1)
|
||||
{
|
||||
if (out.indexOf("ola2pd: Can not read DMX!",0) != -1) {
|
||||
ui.textEdit->appendPlainText("Can not read DMX data.");
|
||||
} else if(out.indexOf("ola2pd: Init complete",0) != -1) {
|
||||
ui.textEdit->appendPlainText("Listening DMX.");
|
||||
ui.textEdit->appendPlainText("Started DMX listening");
|
||||
} else if(out.indexOf("error: [fileselector] nothing found for",0) != -1) {
|
||||
ui.textEdit->appendPlainText("Path to media tree not configured correctly");
|
||||
} else if(out.indexOf("fileselector: folder is greater than the number of folders",0) != -1) {
|
||||
ui.textEdit->appendPlainText("Folder channels is greater than the number of folders");
|
||||
}
|
||||
int j = out.indexOf("togui: ",0);
|
||||
if ((j >= 0) && (out.size() > (j+7)))
|
||||
|
|
Loading…
Add table
Reference in a new issue