CHANGED: #1471 CCtrlTextButton created CViewText shouldn't be serialized.

--HG--
branch : gsoc2012-gui-editor
This commit is contained in:
dfighter1985 2012-08-15 18:12:33 +02:00
parent 0e33091e27
commit 94a6fe7595
2 changed files with 2 additions and 2 deletions

View file

@ -508,6 +508,7 @@ namespace NLGUI
else
_ViewText= new CViewText(CViewBase::TCtorParam());
_ViewText->setId(_Id+"_text");
_ViewText->setSerializable( false );
_ViewText->parseTextOptions(cur);
_ViewText->setAvoidResizeParent(avoidResizeParent());
if(_IsViewTextId)

View file

@ -1353,8 +1353,7 @@ namespace NLGUI
if (parentGroup->getElement(view->getId()) != NULL)
{
// Remove old groupe and replace
// TODO: Don't save widgets created by complex widgets
if ( true /*reload*/)
if ( reload )
parentGroup->delElement (view->getId());
else
{