MODIFIED: Widgets derived from CInterfaceGroup should now be deleted too properly.

This commit is contained in:
dfighter1985 2013-03-08 06:07:21 +01:00
parent 836f3c9c2c
commit b106d18c8b

View file

@ -41,9 +41,9 @@ namespace GUIEditor
if( e == NULL )
return;
CInterfaceElement *p = e;
while( ( p != NULL ) && !p->isGroup() )
p = p->getParent();
CInterfaceElement *p = e->getParent();
if( p == NULL )
return;
CInterfaceGroup *g = dynamic_cast< CInterfaceGroup* >( p );
if( g == NULL )