diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-10-09 10:54:05 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-10-09 13:30:31 (GMT) |
commit | cb12f3c25cfb80ab7905fadbbfdc12a783a362f4 (patch) | |
tree | 9b01b3df47b078e336e5e43c2f3212a99ba21e32 /readactivity.py | |
parent | 3abdf2b679cb4cc9b89084b61512f958bce9d906 (diff) |
Avoid error when closing the activity by toc selection None
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readactivity.py')
-rw-r--r-- | readactivity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/readactivity.py b/readactivity.py index a4272a5..4242e6c 100644 --- a/readactivity.py +++ b/readactivity.py @@ -592,6 +592,8 @@ class ReadActivity(activity.Activity): self.__navigator_cursor_changed_cb) def __navigator_cursor_changed_cb(self, toc_treeview): + if toc_treeview.get_selection() == None: + return treestore, toc_selected = toc_treeview.get_selection().get_selected() if toc_selected is not None: |