diff options
author | Simon Poirier <simpoir@gmail.com> | 2009-12-08 04:04:21 (GMT) |
---|---|---|
committer | Simon Poirier <simpoir@gmail.com> | 2009-12-08 04:04:21 (GMT) |
commit | 64836f57dd3ab59f03ee7c5e375caff4019791f0 (patch) | |
tree | 59d2affa3d56a2d94e9b023da401e37a1cc8b97f /tutorius/creator.py | |
parent | 034e36d4983da0c2d44c56d4efd9af922b2cab4e (diff) |
esthetic fixes on drag.
Signed-off-by: Simon Poirier <simpoir@gmail.com>
Diffstat (limited to 'tutorius/creator.py')
-rw-r--r-- | tutorius/creator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py index 2de21ac..9b1b9bf 100644 --- a/tutorius/creator.py +++ b/tutorius/creator.py @@ -224,6 +224,10 @@ class Creator(Object): @param state_name: the name of the state to use as insertion point """ + # Check if already in state to avoid reinstalling actions needlessly + if self._state == state_name: + return + # first is not modifiable, as the auto transition would make changes # pointless. The end state is also pointless to modify, as the tutorial # gets detached. |