Fixed a crash bug in frame info window.

This commit is contained in:
Collin Kidder
2016-02-28 16:09:25 -05:00
parent 4ab63856ee
commit 96d9f40193
+3 -1
View File
@@ -84,7 +84,9 @@ void FrameInfoWindow::updatedFrames(int numFrames)
else //just got some new frames. See if they are relevant.
{
if (numFrames > modelFrames->count()) return;
int currID = ui->listFrameID->currentItem()->text().toInt(NULL, 16);
int currID = 0;
if (ui->listFrameID->currentItem())
currID = ui->listFrameID->currentItem()->text().toInt(NULL, 16);
bool foundID = false;
for (int x = modelFrames->count() - numFrames; x < modelFrames->count(); x++)
{