diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-05-25 19:54:11 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-05-25 19:54:11 (GMT) |
commit | 6d9ac3f513cdcca0b7a370f82650c6d183533ea0 (patch) | |
tree | 40a40a83fca487e44662ae9e5b946c05207825a2 /TurtleArt/tautils.py | |
parent | 6af0a4fcc3390fbdb3aa0e4d0dabf21f65bf5749 (diff) |
restore cursor if chooser dialog is aborted
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r-- | TurtleArt/tautils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py index b520907..ff9ae7e 100644 --- a/TurtleArt/tautils.py +++ b/TurtleArt/tautils.py @@ -342,12 +342,12 @@ def chooser_dialog(parent_window, filter, action): chooser.destroy() del chooser - if dsobject is not None: - gobject.idle_add(_take_action, action, dsobject) + gobject.idle_add(_take_action, action, dsobject) def _take_action(action, dsobject): action(dsobject) - dsobject.destroy() + if dsobject is not None: + dsobject.destroy() def data_from_file(ta_file): ''' Open the .ta file, ignoring any .png file that might be present. ''' |