diff options
author | Mark Palange (Mani) <palange@lindenlab.com> | 2009-11-09 13:16:04 -0800 |
---|---|---|
committer | Mark Palange (Mani) <palange@lindenlab.com> | 2009-11-09 13:16:04 -0800 |
commit | dc5db676efd340bccd2c6f376c0bcba77e0507c4 (patch) | |
tree | aba1c368d923d106789cddc59b5e4626f048dc44 /indra/newview/llfloateruipreview.cpp | |
parent | 2b5faa0b9cac3736b9d96a68cd13e05ee39ab7d1 (diff) | |
parent | 3b98043d227db07a2396b1fba056e911abd04621 (diff) |
merge
Diffstat (limited to 'indra/newview/llfloateruipreview.cpp')
-rw-r--r-- | indra/newview/llfloateruipreview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloateruipreview.cpp b/indra/newview/llfloateruipreview.cpp index 2fe21f28de..663bd232f7 100644 --- a/indra/newview/llfloateruipreview.cpp +++ b/indra/newview/llfloateruipreview.cpp @@ -670,6 +670,15 @@ void LLFloaterUIPreview::refreshList() } } + found = TRUE; + while(found) // for every sidepanel file that matches the pattern + { + if((found = gDirUtilp->getNextFileInDir(getLocalizedDirectory(), "sidepanel_*.xml", name, FALSE))) // get next file matching pattern + { + addFloaterEntry(name.c_str()); // and add it to the list (file name only; localization code takes care of rest of path) + } + } + if(!mFileList->isEmpty()) // if there were any matching files, just select the first one (so we don't have to worry about disabling buttons when no entry is selected) { mFileList->selectFirstItem(); |