Commit ed001fdb authored by Emmanuel Promayon's avatar Emmanuel Promayon

UPDATED remove trace message now that everything seems to be ok

parent 8fd8aba6
......@@ -133,14 +133,13 @@ void ActionStateMachine::autoNext() {
// loop until no more state is available
while (currentState!=nullptr && currentState->transitions().size()>0) {
CAMITK_TRACE("current state = " + currentState->getName() + " (" + currentState->transitions().size() + " transitions)")
// look for the "Next" or "Quit" transition
auto it = currentState->transitions().begin();
bool foundNextState = false;
while (it!=currentState->transitions().end() && !foundNextState) { // && nextState==nullptr) {
// all transition in this state machine are ActionTransition instances...
ActionTransition* currentActionTransition = qobject_cast<ActionTransition*>(*it);
CAMITK_TRACE("current transition = " + QString("0x%1").arg((quintptr)currentActionTransition, QT_POINTER_SIZE * 2, 16, QChar('0')))
//... in which we can look for the "Next" or "Quit" transition
if (currentActionTransition->isNamed("Next") || currentActionTransition->isNamed("Quit")) {
// activate the transition (simulate a click on the button)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment