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

--HG--
branch : gsoc2012-gui-editor
This commit is contained in:
dfighter1985 2013-03-08 06:07:21 +01:00
parent aa2affa158
commit 660fb00895

View file

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