Skip to content
Snippets Groups Projects
Commit c6e1bf61 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

ScxmlEditor: Retain explicitly set "initial" attributes


If the user sets a state to be initial and then moves it around without
reparenting it, the initial attribute has to be retained. This is
achieved by saving a "removedInitial" attribute in the editor info when
the state is released from its parent and restoring the attribute when
it is reattached. This even works if the state is temporarily reparented
and across save/load cycles.

Change-Id: I65df959e4eb8d46177d59f71c8556d596e773c05
Task-number: QTCREATORBUG-17108
Reviewed-by: default avatarMarco Benelli <marco.benelli@qt.io>
parent 0c6d5d6a
No related branches found
No related tags found
No related merge requests found
Loading
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