under heavy work...

This commit is contained in:
canpadawan
2016-06-08 11:45:17 +02:00
parent 7165b11399
commit 18b1a86a56
6 changed files with 194 additions and 76 deletions
+3 -2
View File
@@ -47,7 +47,8 @@ MainWindow::MainWindow(QWidget *parent) :
this->setWindowTitle("Savvy CAN V" + QString::number(VERSION));
model = new CANFrameModel();
model = new CANFrameModel(this); // set parent to mainwindow to prevent canframemodel to change thread (might be done by setModel but just in case)
ui->canFramesView->setModel(model);
readSettings();
@@ -510,7 +511,7 @@ void MainWindow::gotFrames(int framesSinceLastUpdate)
void MainWindow::addFrameToDisplay(CANFrame &frame, bool autoRefresh = false)
{
model->addFrame(frame, autoRefresh);
model->addFrame(frame, autoRefresh);
if (autoRefresh)
{
if (ui->cbAutoScroll->isChecked()) ui->canFramesView->scrollToBottom();