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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user