mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
MODIFIED: Widgets derived from CInterfaceGroup should now be deleted too properly.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
aa2affa158
commit
660fb00895
1 changed files with 3 additions and 3 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue