From a7acaac2fb8cb805acf3fdf12f77aeec042c7a07 Mon Sep 17 00:00:00 2001 From: Andy Huska Date: Wed, 2 Nov 2022 15:32:39 -0500 Subject: [PATCH] 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). --- connections/canconmanager.cpp | 40 ----------------------------------- framesenderwindow.cpp | 7 +++--- 2 files changed, 4 insertions(+), 43 deletions(-) diff --git a/connections/canconmanager.cpp b/connections/canconmanager.cpp index 45d9c67..4340670 100644 --- a/connections/canconmanager.cpp +++ b/connections/canconmanager.cpp @@ -204,7 +204,6 @@ bool CANConManager::sendFrame(const CANFrame& pFrame) { int busBase = 0; CANFrame workingFrame = pFrame; - CANFrame *txFrame; if (mConns.count() == 0) { @@ -229,45 +228,6 @@ bool CANConManager::sendFrame(const CANFrame& pFrame) //workingFrame.timestamp -= mTimestampBasis; } - - - -// CANFrame frameCopy; -// frameCopy.bus = workingFrame.bus; -// //cFrame.timedelta - -// ///////////////////////////////////////////// -// QByteArray copiedData; -// for(int i=0; igetQueue().get(); -// QCoreApplication::processEvents(); -// *txFrame = frameCopy; //workingFrame -// conn->getQueue().queue(); - - return conn->sendFrame(workingFrame); } busBase += conn->getNumBuses(); diff --git a/framesenderwindow.cpp b/framesenderwindow.cpp index 0741de9..818fdab 100644 --- a/framesenderwindow.cpp +++ b/framesenderwindow.cpp @@ -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)