Fixed regression where non-commented node would not delete

Fixed odd crash due to dbcNode being null on refresh
This commit is contained in:
Andy Huska
2022-09-20 07:46:30 -05:00
parent 7e4ebf2c74
commit 13c920f971
2 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -111,8 +111,11 @@ void DBCNodeEditor::showEvent(QShowEvent* event)
void DBCNodeEditor::refreshView()
{
ui->lineComment->setText(dbcNode->comment);
ui->lineMsgName->setText(dbcNode->name);
if(dbcNode)
{
ui->lineComment->setText(dbcNode->comment);
ui->lineMsgName->setText(dbcNode->name);
}
//generateSampleText();
}