JdeRobot / VisualStates

Tool for visual programming of robots using automata
https://jderobot.github.io/VisualStates/
GNU General Public License v3.0
8 stars 8 forks source link

Deleting states doesn't delete the transtitions that point to it. #109

Closed sudo-panda closed 5 years ago

sudo-panda commented 5 years ago

The ideal behaviour would be that both transitions that originate from the state and those that point towards the state should be deleted. Right now it only deletes the transitions that originate from it.

okanasik commented 5 years ago

Dear @sudo-panda, I am not sure there is such a problem. If a state is removed all transitions that originate and all transitions that point to it is removed in method removeStateItem If you think there is still a problem that I do not see, can you write the steps to reproduce the problem. https://github.com/JdeRobot/VisualStates/blob/e79dcf84fb3023e17a3352dccb91f4b11b3001b2/src/visualstates/gui/automata/automatascene.py#L191

sudo-panda commented 5 years ago

I myself can't reproduce the problem now. But #110 is necessary for the functioning of #108. Nevertheless closing this issue.