Fix for proper clearing of frames, addition of a couple of saving formats.
This commit is contained in:
+2
-2
@@ -118,9 +118,9 @@ void CANFrameModel::sendRefresh(int pos)
|
||||
|
||||
void CANFrameModel::clearFrames()
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, frames.count());
|
||||
this->beginResetModel();
|
||||
frames.clear();
|
||||
endRemoveRows();
|
||||
this->endResetModel();
|
||||
}
|
||||
|
||||
//Is this safe? Maybe not but if we don't change it then that's OK
|
||||
|
||||
Reference in New Issue
Block a user