mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-30 23:45:59 +00:00
MODIFIED: Widgets derived from CInterfaceGroup should now be deleted too properly.
This commit is contained in:
parent
bf53503fc1
commit
5bd77c58b5
1 changed files with 3 additions and 3 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue