Fixed crash bug found in many sub screens, made UDS scanner work better.

This commit is contained in:
Collin Kidder
2016-01-29 15:03:29 -05:00
parent a3318947d5
commit 48fb208f8b
10 changed files with 79 additions and 39 deletions
+1
View File
@@ -39,6 +39,7 @@ void ScriptingWindow::updatedFrames(int numFrames)
//-1 means all frames deleted and -2 means a full refresh, neither of which we care about here.
if (numFrames > 0)
{
if (numFrames > modelFrames->count()) return;
qDebug() << "Got frames into script window: " << numFrames;
//for every new frame pass it on to each script container. The container will determine if it needs to actually
//notify the script and do that if applicable.