From 4c8921ceca0493227a6f57b6e253c29e987c3c92 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sun, 26 Nov 2017 15:35:52 +0100 Subject: [PATCH] FramesView: Fix auto scrolling when frame capturing is suspended Allow to freely scroll the captured frames window in suspended state. Fixes #111 --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9cf225d..2f4e1ea 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -409,7 +409,7 @@ void MainWindow::tickGUIUpdate() framesPerSec = 0; ui->lbNumFrames->setText(QString::number(model->rowCount())); - if (ui->cbAutoScroll->isChecked()) ui->canFramesView->scrollToBottom(); + if (allowCapture && ui->cbAutoScroll->isChecked()) ui->canFramesView->scrollToBottom(); ui->lbFPS->setText(QString::number(framesPerSec)); if (rxFrames > 0) {