fmorbini / scxmlgui

A graphical user interface for editing SCXML finite state machines.
Other
105 stars 37 forks source link

Node editor still displayed after node is deleted #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add new node
2. Open node editor
3. Delete the edited node while the editor is open
4. Change node id in editor
5. Undo delete

What is the expected output? What do you see instead?
After step 3, the editor should close automatically, as there is no point in 
editing a deleted node. If editing is necessary, the node should be restored 
first with an undo, and then edited in a new editor.
Following steps 1-5, the node is restored with an id different from when it was 
deleted -> this is strange, and not correct undo behaviour.

What version of the product are you using? On what operating system?
HEAD ( revision 164)

Please provide any additional information below.

Original issue reported on code.google.com by tamas.gy...@gmail.com on 12 Nov 2012 at 1:44

GoogleCodeExporter commented 9 years ago
fixed by checking whether an editor is open for a cell directly or indirectly 
being deleted. (in r168)

Original comment by fmorbini on 16 Nov 2012 at 6:22