From 64836f57dd3ab59f03ee7c5e375caff4019791f0 Mon Sep 17 00:00:00 2001 From: Simon Poirier Date: Tue, 08 Dec 2009 04:04:21 +0000 Subject: esthetic fixes on drag. Signed-off-by: Simon Poirier --- (limited to 'tutorius/creator.py') 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. -- cgit v0.9.1