0001963: bug on a fix: handle gramplets that aren't objects

svn: r10614
This commit is contained in:
Doug Blank 2008-04-21 11:04:43 +00:00
parent 4c479c64b2
commit 1942b3b073

View File

@ -1164,7 +1164,8 @@ class GrampletView(PageView.PersonNavView):
self._popup_xy[0], self._popup_xy[1], 0)
else:
self.drop_widget(self.widget, gramplet, 0, 0, 0)
g.pui.update()
if g.pui:
g.pui.update()
else:
print "Can't make gramplet of type '%s'." % name