From 077cb223e0c22f18f3e209e105b324d4611951ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Inostroza?= Date: Fri, 3 Nov 2017 01:12:18 -0300 Subject: [PATCH] Fix DBC handler and DBCFile. Initialize j1939 attribute to false by default. --- dbc/dbchandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbc/dbchandler.cpp b/dbc/dbchandler.cpp index 3d4e06a..76c5e1f 100644 --- a/dbc/dbchandler.cpp +++ b/dbc/dbchandler.cpp @@ -214,6 +214,7 @@ void DBCMessageHandler::setJ1939(bool j1939) DBCFile::DBCFile() { messageHandler = new DBCMessageHandler; + messageHandler->setJ1939(false); } DBCFile::DBCFile(const DBCFile& cpy) @@ -346,6 +347,7 @@ void DBCFile::loadFile(QString fileName) qDebug() << "Starting DBC load"; dbc_nodes.clear(); messageHandler->removeAllMessages(); + messageHandler->setJ1939(false); DBC_NODE falseNode; falseNode.name = "Vector__XXX";