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();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CANFrameModel::addFrame(const CANFrame &frame, bool autoRefresh = false)
|
|
||||||
|
void CANFrameModel::addFrame(CANFrame frame, bool autoRefresh = false)
|
||||||
{
|
{
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
CANFrame tempFrame;
|
CANFrame tempFrame;
|
||||||
|
|||||||
+3
-1
@@ -23,7 +23,6 @@ public:
|
|||||||
int columnCount(const QModelIndex &) const;
|
int columnCount(const QModelIndex &) const;
|
||||||
int totalFrameCount();
|
int totalFrameCount();
|
||||||
|
|
||||||
void addFrame(const CANFrame &, bool);
|
|
||||||
void sendRefresh();
|
void sendRefresh();
|
||||||
void sendRefresh(int);
|
void sendRefresh(int);
|
||||||
void sendBulkRefresh(int);
|
void sendBulkRefresh(int);
|
||||||
@@ -46,6 +45,9 @@ public:
|
|||||||
const QVector<CANFrame> *getFilteredListReference() const; //Thus saith the Lord, NO.
|
const QVector<CANFrame> *getFilteredListReference() const; //Thus saith the Lord, NO.
|
||||||
const QMap<int, bool> *getFiltersReference() const; //this neither
|
const QMap<int, bool> *getFiltersReference() const; //this neither
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void addFrame(CANFrame, bool);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void updatedFiltersList();
|
void updatedFiltersList();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user