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.
This commit is contained in:
Collin Kidder
2015-06-16 20:16:52 -04:00
parent f1cedbd880
commit 4439a7373e
+3 -1
View File
@@ -8,7 +8,9 @@ FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *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<CANFrame>(*frames);
serialWorker = worker;
playbackTimer = new QTimer();