Fix a bug in dbc editor

This commit is contained in:
Collin Kidder
2015-07-08 22:22:38 -04:00
parent c36684404a
commit 64e06bfc9a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ void DBCHandler::saveDBCFile(QString filename)
for (int x = 0; x < dbc_nodes.count(); x++)
{
DBC_NODE node = dbc_nodes[x];
if (node.name.compare("Vector_XXX", Qt::CaseInsensitive) != 0)
if (node.name.compare("Vector__XXX", Qt::CaseInsensitive) != 0)
{
nodesOutput.append(node.name + " ");
if (node.comment.length() > 0)
+3 -3
View File
@@ -118,7 +118,7 @@ void DBCMainEditor::deleteCurrentNode()
{
int thisRow = ui->NodesTable->currentRow();
QString nodeName = ui->NodesTable->item(thisRow, 0)->text();
if (nodeName.length() > 0 && nodeName.compare("Vector_XXX", Qt::CaseInsensitive) != 0)
if (nodeName.length() > 0 && nodeName.compare("Vector__XXX", Qt::CaseInsensitive) != 0)
{
ui->NodesTable->removeRow(thisRow);
dbcHandler->dbc_nodes.removeAt(thisRow);
@@ -375,10 +375,10 @@ void DBCMainEditor::refreshNodesTable()
int rowIdx;
if (dbcHandler->findNodeByName("Vector_XXX") == NULL)
if (dbcHandler->findNodeByName("Vector__XXX") == NULL)
{
DBC_NODE newNode;
newNode.name = "Vector_XXX";
newNode.name = "Vector__XXX";
newNode.comment = "Default node if no other node is specified";
dbcHandler->dbc_nodes.append(newNode);
}