Skip to content
Snippets Groups Projects
Commit 479a3c28 authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

[ #7901 ] It is far from beautiful, but it work in most cases

parent 6b6ee5ff
No related branches found
No related tags found
No related merge requests found
......@@ -490,11 +490,13 @@ call_state Call::actionPerformed(call_action action)
Q_ASSERT_X((state>4) || (state < 0),"perform action","Invalid action ("+QString::number(action)+")");
Q_ASSERT_X((action>5) || (action < 0),"perform action","Invalid action ("+QString::number(action)+")");
//update the state
if (previousState < 11 && action < 5) {
changeCurrentState(actionPerformedStateMap[previousState][action]);
//execute the action associated with this transition
(this->*(actionPerformedFunctionMap[previousState][action]))(); //WARNING BUG //WARNING SEGFAULT //TODO remove this node, it was not a good idea, it is not stable
qDebug() << "Calling action " << action << " on call with state " << previousState << ". Become " << m_CurrentState;
//return the new state
}
return m_CurrentState;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment