Fix for proper clearing of frames, addition of a couple of saving formats.

This commit is contained in:
Collin Kidder
2015-05-04 22:20:15 -04:00
parent 17e17c6f65
commit 277218b43e
4 changed files with 133 additions and 8 deletions
+2 -2
View File
@@ -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