Fixes to frame capture bugs introduced by last commit. Naughty!

This commit is contained in:
Collin Kidder
2015-06-30 20:24:16 -04:00
parent 46a25cc1e5
commit cc6c8db1fc
3 changed files with 18 additions and 3 deletions
+5 -1
View File
@@ -102,7 +102,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(this, &MainWindow::startFrameCapturing, worker, &SerialWorker::startFrameCapture);
connect(this, &MainWindow::stopFrameCapturing, worker, &SerialWorker::stopFrameCapture);
serialWorkerThread.start();
serialWorkerThread.setPriority(QThread::TimeCriticalPriority);
serialWorkerThread.setPriority(QThread::HighPriority);
graphingWindow = NULL;
frameInfoWindow = NULL;
@@ -292,6 +292,8 @@ void MainWindow::updateFilterList()
const QMap<int, bool> *filters = model->getFiltersReference();
if (filters == NULL) return;
qDebug() << "updateFilterList called on MainWindow";
ui->listFilters->clear();
if (filters->isEmpty()) return;
@@ -333,6 +335,8 @@ void MainWindow::gotFrames(int FPS, int framesSinceLastUpdate)
bDirty = true;
emit framesUpdated(framesSinceLastUpdate); //anyone care that frames were updated?
}
if (model->needsFilterRefresh()) updateFilterList();
}
void MainWindow::addFrameToDisplay(CANFrame &frame, bool autoRefresh = false)