diff options
author | Mm Alder | 2010-01-03 14:33:06 -0500 |
---|---|---|
committer | Mm Alder | 2010-01-03 14:33:06 -0500 |
commit | b73beb6715011ca81d8d9febb8d6f109aa9f2e4c (patch) | |
tree | 4aa971105eb6ae8721d112623a8eeed45b9da9a4 /linden | |
parent | Disabled sending viewer stats. (diff) | |
download | meta-impy-b73beb6715011ca81d8d9febb8d6f109aa9f2e4c.zip meta-impy-b73beb6715011ca81d8d9febb8d6f109aa9f2e4c.tar.gz meta-impy-b73beb6715011ca81d8d9febb8d6f109aa9f2e4c.tar.bz2 meta-impy-b73beb6715011ca81d8d9febb8d6f109aa9f2e4c.tar.xz |
VWR-14475 Load from XML is broken
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lluictrlfactory.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/linden/indra/llui/lluictrlfactory.cpp b/linden/indra/llui/lluictrlfactory.cpp index 983cc53..0074494 100644 --- a/linden/indra/llui/lluictrlfactory.cpp +++ b/linden/indra/llui/lluictrlfactory.cpp | |||
@@ -163,20 +163,24 @@ bool LLUICtrlFactory::getLayeredXMLNode(const std::string &xui_filename, LLXMLNo | |||
163 | std::string full_filename = gDirUtilp->findSkinnedFilename(sXUIPaths.front(), xui_filename); | 163 | std::string full_filename = gDirUtilp->findSkinnedFilename(sXUIPaths.front(), xui_filename); |
164 | if (full_filename.empty()) | 164 | if (full_filename.empty()) |
165 | { | 165 | { |
166 | llwarns << "Couldn't find UI description file: " << sXUIPaths.front() + gDirUtilp->getDirDelimiter() + xui_filename << llendl; | ||
167 | return false; | ||
168 | } | ||
169 | |||
170 | if (!LLXMLNode::parseFile(full_filename, root, NULL)) | ||
171 | { | ||
172 | // try filename as passed in since sometimes we load an xml file from a user-supplied path | 166 | // try filename as passed in since sometimes we load an xml file from a user-supplied path |
173 | if (!LLXMLNode::parseFile(xui_filename, root, NULL)) | 167 | if (gDirUtilp->fileExists(xui_filename)) |
174 | { | 168 | { |
175 | llwarns << "Problem reading UI description file: " << xui_filename << llendl; | 169 | full_filename = xui_filename; |
170 | } | ||
171 | else | ||
172 | { | ||
173 | llwarns << "Couldn't find UI description file: " << sXUIPaths.front() + gDirUtilp->getDirDelimiter() + xui_filename << llendl; | ||
176 | return false; | 174 | return false; |
177 | } | 175 | } |
178 | } | 176 | } |
179 | 177 | ||
178 | if (!LLXMLNode::parseFile(full_filename, root, NULL)) | ||
179 | { | ||
180 | llwarns << "Problem reading UI description file: " << full_filename << llendl; | ||
181 | return false; | ||
182 | } | ||
183 | |||
180 | LLXMLNodePtr updateRoot; | 184 | LLXMLNodePtr updateRoot; |
181 | 185 | ||
182 | std::vector<std::string>::const_iterator itor; | 186 | std::vector<std::string>::const_iterator itor; |