MAINT-8273 FIXED Crash in LLViewerInventoryMoveFromWorldObserver::isSelectionChanged()

master
maxim_productengine 2018-02-06 18:44:57 +02:00
parent 3b4ae3fe52
commit 4d7a59c232
1 changed files with 2 additions and 2 deletions

View File

@ -871,7 +871,7 @@ private:
*/
bool isSelectionChanged()
{
LLInventoryPanel* active_panel = dynamic_cast<LLInventoryPanel*>(mActivePanel.get());
LLInventoryPanel* active_panel = LLInventoryPanel::getActiveInventoryPanel();
if (NULL == active_panel)
{
@ -881,7 +881,7 @@ private:
// get selected items (without destination folder)
selected_items_t selected_items;
std::set<LLFolderViewItem*> selection = LLInventoryPanel::getActiveInventoryPanel()->getRootFolder()->getSelectionList();
std::set<LLFolderViewItem*> selection = active_panel->getRootFolder()->getSelectionList();
for (std::set<LLFolderViewItem*>::iterator it = selection.begin(), end_it = selection.end();
it != end_it;
++it)