Fixed crash with adding DBC signals, slight code change for clarity in

DBC code
This commit is contained in:
Collin Kidder
2021-05-23 10:52:23 -04:00
parent 204c115162
commit a1923f132b
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -602,6 +602,7 @@ void DBCMainEditor::newSignal()
}
sig.parentMessage = msg;
if (!sig.receiver) sig.receiver = &dbcFile->dbc_nodes[0]; //if receiver not set then set it to... something.
msg->sigHandler->addSignal(sig);
sigPtr = msg->sigHandler->findSignalByIdx(msg->sigHandler->getCount() - 1);
QTreeWidgetItem *newSigItem = new QTreeWidgetItem();