Fix crash bugs in discrete state and flowview windows.
This commit is contained in:
@@ -126,8 +126,8 @@ void DiscreteStateWindow::updatedFrames(int numFrames)
|
|||||||
listItem->setCheckState(Qt::Checked); //default all filters to be set active
|
listItem->setCheckState(Qt::Checked); //default all filters to be set active
|
||||||
}
|
}
|
||||||
|
|
||||||
if (operatingState == DWStates::IDLE) stateFrames[0]->append(thisFrame);
|
//if (operatingState == DWStates::IDLE) stateFrames[0]->append(thisFrame);
|
||||||
else stateFrames[currToggleState + 1]->append(thisFrame);
|
//else stateFrames[currToggleState + 1]->append(thisFrame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -361,12 +361,12 @@ void FlowViewWindow::updatedFrames(int numFrames)
|
|||||||
foundID.clear();
|
foundID.clear();
|
||||||
currentPosition = 0;
|
currentPosition = 0;
|
||||||
refreshIDList();
|
refreshIDList();
|
||||||
if (ui->listFrameID->count() > 0)
|
//if (ui->listFrameID->count() > 0)
|
||||||
{
|
//{
|
||||||
changeID(ui->listFrameID->item(0)->text());
|
// changeID(ui->listFrameID->item(0)->text());
|
||||||
ui->listFrameID->setCurrentRow(0);
|
// ui->listFrameID->setCurrentRow(0);
|
||||||
}
|
//}
|
||||||
updateFrameLabel();
|
//updateFrameLabel();
|
||||||
}
|
}
|
||||||
else //just got some new frames. See if they are relevant.
|
else //just got some new frames. See if they are relevant.
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user