change slot parameter from pointer to object as the object might have been deallocated when the slot is activated
This commit is contained in:
+2
-1
@@ -281,7 +281,8 @@ QVariant CANFrameModel::headerData(int section, Qt::Orientation orientation,
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
void CANFrameModel::addFrame(const CANFrame &frame, bool autoRefresh = false)
|
||||
|
||||
void CANFrameModel::addFrame(CANFrame frame, bool autoRefresh = false)
|
||||
{
|
||||
mutex.lock();
|
||||
CANFrame tempFrame;
|
||||
|
||||
Reference in New Issue
Block a user