Fixed issue with non-object Gramplets

svn: r10206
This commit is contained in:
Doug Blank 2008-03-07 12:31:11 +00:00
parent 0b60f234a7
commit 5585ebdf4a

View File

@ -515,7 +515,7 @@ class GuiGramplet:
self.gvclose.hide()
self.gvstate.hide()
self.gvproperties.hide()
if len(self.pui.option_dict) > 0:
if self.pui and len(self.pui.option_dict) > 0:
self.gvoptions.show()
# keep a pointer to old parent frame:
self.parent = self.mainframe.get_parent()