Fix catalog crash

This commit is contained in:
Daniel 2015-03-04 18:21:34 +02:00
parent d445c51604
commit 702d65198d

View file

@ -39,7 +39,6 @@ class CatalogGUI(NodePath, DirectObject):
self.hangup = DirectButton(self,
relief=None,
pos=(-0.158, 0, 0.17),
parent=base.a2dBottomRight,
image=[hangupGui, hangupRolloverGui, hangupRolloverGui, hangupGui],
text=['', TTLocalizer.CatalogHangUp, TTLocalizer.CatalogHangUp],
text_fg=Vec4(1),
@ -47,6 +46,7 @@ class CatalogGUI(NodePath, DirectObject):
text_pos=(0.0, 0.14),
command=self.hangUp
)
self.hangup.reparentTo(base.a2dBottomRight)
guiItems.removeNode()
def setCurrentTab(self, tab):