Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-10-09 10:54:05 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-10-09 13:30:31 (GMT)
commitcb12f3c25cfb80ab7905fadbbfdc12a783a362f4 (patch)
tree9b01b3df47b078e336e5e43c2f3212a99ba21e32 /readactivity.py
parent3abdf2b679cb4cc9b89084b61512f958bce9d906 (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.py2
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: