diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/llui/llpanel.cpp | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/llui/llpanel.cpp')
-rw-r--r-- | linden/indra/llui/llpanel.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp index f0b5b25..dfa3f8a 100644 --- a/linden/indra/llui/llpanel.cpp +++ b/linden/indra/llui/llpanel.cpp | |||
@@ -589,7 +589,7 @@ LLView* LLPanel::fromXML(LLXMLNodePtr node, LLView* parentp, LLUICtrlFactory *fa | |||
589 | return panelp; | 589 | return panelp; |
590 | } | 590 | } |
591 | 591 | ||
592 | void LLPanel::initPanelXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 592 | BOOL LLPanel::initPanelXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
593 | { | 593 | { |
594 | LLString name("panel"); | 594 | LLString name("panel"); |
595 | node->getAttributeString("name", name); | 595 | node->getAttributeString("name", name); |
@@ -605,12 +605,23 @@ void LLPanel::initPanelXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *f | |||
605 | 605 | ||
606 | LLString xml_filename; | 606 | LLString xml_filename; |
607 | node->getAttributeString("filename", xml_filename); | 607 | node->getAttributeString("filename", xml_filename); |
608 | |||
609 | BOOL didPost; | ||
610 | |||
608 | if (!xml_filename.empty()) | 611 | if (!xml_filename.empty()) |
609 | { | 612 | { |
610 | factory->buildPanel(this, xml_filename, NULL); | 613 | didPost = factory->buildPanel(this, xml_filename, NULL); |
614 | } else { | ||
615 | didPost = FALSE; | ||
611 | } | 616 | } |
612 | 617 | ||
613 | postBuild(); | 618 | if (!didPost) |
619 | { | ||
620 | postBuild(); | ||
621 | didPost = TRUE; | ||
622 | } | ||
623 | |||
624 | return didPost; | ||
614 | } | 625 | } |
615 | 626 | ||
616 | void LLPanel::setPanelParameters(LLXMLNodePtr node, LLView* parentp) | 627 | void LLPanel::setPanelParameters(LLXMLNodePtr node, LLView* parentp) |