diff --git a/frameinfowindow.cpp b/frameinfowindow.cpp index 72d20a0..c06e30d 100644 --- a/frameinfowindow.cpp +++ b/frameinfowindow.cpp @@ -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++) {