Fixed a crash bug in frame info window.
This commit is contained in:
+3
-1
@@ -84,7 +84,9 @@ void FrameInfoWindow::updatedFrames(int numFrames)
|
|||||||
else //just got some new frames. See if they are relevant.
|
else //just got some new frames. See if they are relevant.
|
||||||
{
|
{
|
||||||
if (numFrames > modelFrames->count()) return;
|
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;
|
bool foundID = false;
|
||||||
for (int x = modelFrames->count() - numFrames; x < modelFrames->count(); x++)
|
for (int x = modelFrames->count() - numFrames; x < modelFrames->count(); x++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user