From f0852c0a41a5cf4a51fe3f345f9b653db66c68f2 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 10 Mar 2009 00:53:10 +0000 Subject: [PATCH] 2798: Gramplet 'Fan Chart' throws error when right-clicked prior to defining Home Person. svn: r12288 --- src/plugins/gramplet/FanChartGramplet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/gramplet/FanChartGramplet.py b/src/plugins/gramplet/FanChartGramplet.py index 7bdee3385..424e2e0e7 100644 --- a/src/plugins/gramplet/FanChartGramplet.py +++ b/src/plugins/gramplet/FanChartGramplet.py @@ -506,8 +506,9 @@ class FanChartWidget(gtk.Widget): if radius < self.center: # right mouse if event.button == 3 and self.context_popup_callback: - self.context_popup_callback(widget, event, - self.data[0][0][1].handle) + if self.data[0][0][1]: + self.context_popup_callback(widget, event, + self.data[0][0][1].handle) return True else: return False