diff options
author | Tofu Buzzard <no-email> | 2010-11-09 10:05:17 +0000 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2010-11-09 10:05:17 +0000 |
commit | caa53cc8cdd69bd48bd6c07fa6c98234e81f8a42 (patch) | |
tree | 682c2571bad71cf52e5157f4703163ca2ce21f57 /indra/newview/llinventorypanel.cpp | |
parent | 179e9e37ecbdcd1ad2133733047707ddd42e8c30 (diff) | |
parent | b657516f72f016a918e0ff627105dd380a94394c (diff) |
merge up from v-d
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index 50adae09c0..0870b5b8dd 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -290,7 +290,10 @@ void LLInventoryPanel::modelChanged(U32 mask) const LLUUID& item_id = (*items_iter); const LLInventoryObject* model_item = model->getObject(item_id); LLFolderViewItem* view_item = mFolderRoot->getItemByID(item_id); - LLFolderViewFolder* view_folder = mFolderRoot->getFolderByID(item_id); + + // LLFolderViewFolder is derived from LLFolderViewItem so dynamic_cast from item + // to folder is the fast way to get a folder without searching through folders tree. + LLFolderViewFolder* view_folder = dynamic_cast<LLFolderViewFolder*>(view_item); ////////////////////////////// // LABEL Operation |