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:
# 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