From 4439a7373e2ce2e59557f236ca453f933b2a1c9a Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Tue, 16 Jun 2015 20:16:52 -0400 Subject: [PATCH] Cause frame playback window to make a copy of the current frames when it is opened. This way it'll send what was available when it started. You can clear the original data if you want, keep capturing, anything you want and it'll still be able to keep going with its own copy. --- frameplaybackwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frameplaybackwindow.cpp b/frameplaybackwindow.cpp index ade0c95..0b115a6 100644 --- a/frameplaybackwindow.cpp +++ b/frameplaybackwindow.cpp @@ -8,7 +8,9 @@ FramePlaybackWindow::FramePlaybackWindow(QVector *frames, SerialWorker { ui->setupUi(this); - modelFrames = frames; + //this code intentionally creates a copy here so that we + //don't pick up more frames coming in as we're going. + modelFrames = new QVector(*frames); serialWorker = worker; playbackTimer = new QTimer();