Cleaned out comment blocks from debug and fixed framesender not showing

count until a number is manually entered (it was seeing the null item,
creating the item, but not putting it in the table).
This commit is contained in:
Andy Huska
2022-11-02 15:32:39 -05:00
parent 6ef4c2ddfa
commit a7acaac2fb
2 changed files with 4 additions and 43 deletions
+4 -3
View File
@@ -821,12 +821,13 @@ void FrameSenderWindow::updateGridRow(int idx)
if (item == nullptr)
{
//item = new QTableWidgetItem();
//item->setText(QString::number(temp->count)); //crashes here ---qt_Static_metacall -> handleTick ->here
item = new QTableWidgetItem();
item->setText(QString::number(temp->count));
ui->tableSender->setItem(gridLine, 9, item);
}
else
{
item->setText(QString::number(temp->count)); //crashes here ---qt_Static_metacall -> handleTick ->here
item->setText(QString::number(temp->count));
}
if (temp->frameType() != QCanBusFrame::RemoteRequestFrame)