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
|
||||
}
|
||||
|
||||
if (operatingState == DWStates::IDLE) stateFrames[0]->append(thisFrame);
|
||||
else stateFrames[currToggleState + 1]->append(thisFrame);
|
||||
//if (operatingState == DWStates::IDLE) stateFrames[0]->append(thisFrame);
|
||||
//else stateFrames[currToggleState + 1]->append(thisFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,12 +361,12 @@ void FlowViewWindow::updatedFrames(int numFrames)
|
||||
foundID.clear();
|
||||
currentPosition = 0;
|
||||
refreshIDList();
|
||||
if (ui->listFrameID->count() > 0)
|
||||
{
|
||||
changeID(ui->listFrameID->item(0)->text());
|
||||
ui->listFrameID->setCurrentRow(0);
|
||||
}
|
||||
updateFrameLabel();
|
||||
//if (ui->listFrameID->count() > 0)
|
||||
//{
|
||||
// changeID(ui->listFrameID->item(0)->text());
|
||||
// ui->listFrameID->setCurrentRow(0);
|
||||
//}
|
||||
//updateFrameLabel();
|
||||
}
|
||||
else //just got some new frames. See if they are relevant.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user