diff options
author | Richard Nelson <none@none> | 2010-03-09 16:16:07 -0800 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-03-09 16:16:07 -0800 |
commit | 4d412d38ce63cc040f25b883bfc3e358a8c1bb7c (patch) | |
tree | c40a89cd9b28d92fd6b4ec1107400ee0b4d248f0 /indra/newview/llfolderview.cpp | |
parent | b21e89395ae168c86b7315e7bfc0eff0e17122f9 (diff) |
EXT-6030 - [ Assert Failure] Assert in LLFolderViewFolder when select inventory folder after moving item between folders
reviewed by Leyla
Diffstat (limited to 'indra/newview/llfolderview.cpp')
-rw-r--r-- | indra/newview/llfolderview.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp index cc807c2370..23062bafec 100644 --- a/indra/newview/llfolderview.cpp +++ b/indra/newview/llfolderview.cpp @@ -837,11 +837,14 @@ void LLFolderView::sanitizeSelection() void LLFolderView::clearSelection() { - if (mSelectedItems.size() > 0) + for (selected_items_t::const_iterator item_it = mSelectedItems.begin(); + item_it != mSelectedItems.end(); + ++item_it) { - recursiveDeselect(FALSE); - mSelectedItems.clear(); + (*item_it)->setUnselected(); } + + mSelectedItems.clear(); mSelectThisID.setNull(); } |