Skip to content
Snippets Groups Projects
Commit 39d83bc3 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

sce: more useful context menu text

parent 1a1dc335
No related branches found
No related tags found
No related merge requests found
...@@ -218,6 +218,18 @@ namespace armarx ...@@ -218,6 +218,18 @@ namespace armarx
if (!transition->destinationState || !transition->destinationState->getStateClass() if (!transition->destinationState || !transition->destinationState->getStateClass()
|| !node || !node->getCppExists() || !transition->sourceState) || !node || !node->getCppExists() || !transition->sourceState)
{ {
if (!node->getCppExists())
{
enableTransitionCode->setText(enableTransitionCode->text() + " (no parent cpp)");
}
else if (!transition->sourceState)
{
enableTransitionCode->setText("Transition code unavailable for initial transition");
}
else if (transition->destinationState && !transition->destinationState->getStateClass())
{
enableTransitionCode->setText(enableTransitionCode->text() + " (final or unloaded destination state)");
}
enableTransitionCode->setEnabled(false); enableTransitionCode->setEnabled(false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment