2798: Gramplet 'Fan Chart' throws error when right-clicked prior to defining Home Person.

svn: r12289
This commit is contained in:
Doug Blank 2009-03-10 00:55:35 +00:00
parent baba8c7bd5
commit e2e6d4972e

View File

@ -506,8 +506,9 @@ class FanChartWidget(gtk.Widget):
if radius < self.center: if radius < self.center:
# right mouse # right mouse
if event.button == 3 and self.context_popup_callback: if event.button == 3 and self.context_popup_callback:
self.context_popup_callback(widget, event, if self.data[0][0][1]:
self.data[0][0][1].handle) self.context_popup_callback(widget, event,
self.data[0][0][1].handle)
return True return True
else: else:
return False return False