Skip to content
Snippets Groups Projects
Commit c146471e authored by Igor Borovkov's avatar Igor Borovkov
Browse files

EXT-8145 FIXED disabled committing on selection change when list's selection...

EXT-8145 FIXED disabled committing on selection change when list's selection is restored (panel edit outfit)

turning off committing on selection change for the COF Wearables flat lists while restoring selection between refreshes/updates

Reviewed by Vadim Savchuk and Neal Orman at https://codereview.productengine.com/secondlife/r/683/

--HG--
branch : product-engine
parent edcf44ad
No related branches found
No related tags found
No related merge requests found
......@@ -372,6 +372,11 @@ void LLCOFWearables::refresh()
iter != iter_end; ++iter)
{
LLFlatListView* list = iter->first;
if (!list) continue;
//restoring selection should not fire commit callbacks
list->setCommitOnSelectionChange(false);
const values_vector_t& values = iter->second;
for (values_vector_t::const_iterator
value_it = values.begin(),
......@@ -385,6 +390,8 @@ void LLCOFWearables::refresh()
list->selectItemByValue(*value_it);
}
}
list->setCommitOnSelectionChange(true);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment