Fixes to hopefully make signal colors look proper.

This commit is contained in:
Collin Kidder
2020-02-12 21:16:02 -05:00
parent 48d7dfa97c
commit 7f8411f47f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1507,8 +1507,8 @@ DBCFile* DBCHandler::loadJSONFile(int idx)
msg.sender = thisFile->findNodeByIdx(0);
QString nodeName = iter->toObject().find("originNode").value().toString();
msg.sender = thisFile->findNodeByName(nodeName);
msg.bgColor = QColor();
msg.fgColor = QColor();
msg.bgColor = QColor(thisFile->findAttributeByName("GenMsgBackgroundColor")->defaultValue.toString());
msg.fgColor = QColor(thisFile->findAttributeByName("GenMsgForegroundColor")->defaultValue.toString());
if (!msg.sender && nodeName.length() > 1)
{
DBC_NODE node;