Commit be741a10 authored by Projects's avatar Projects Committed by Grzegorz Daniluk

GUI demo: disable the dialog when unconnected

parent 1ee2ad23
......@@ -351,10 +351,14 @@ void DiotDiag::UpdateStatus(int status)
break;
}
if(status == MSTRFIP_DATA_OK)
if(status == MSTRFIP_DATA_OK) {
statusBar->setStyleSheet("color: green");
else
parentWidget()->setEnabled(true);
}
else {
statusBar->setStyleSheet("color: red");
parentWidget()->setEnabled(false);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment