diff options
author | Oz Linden <oz@lindenlab.com> | 2012-06-14 19:51:59 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-06-14 19:51:59 -0400 |
commit | fc1f30a05b14d80786f7fd41b30640092fc5683d (patch) | |
tree | b0f104c4ae9f8a34cc350418b4fdcf5940a2abe9 /indra/newview | |
parent | 64a34c13703155679a9cba3057b785ff8d55a070 (diff) |
STORM-1882: keep dictionary selected when moving, allowing deletion when moved to Available
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterspellchecksettings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterspellchecksettings.cpp b/indra/newview/llfloaterspellchecksettings.cpp index d350637790..95934d46a8 100644 --- a/indra/newview/llfloaterspellchecksettings.cpp +++ b/indra/newview/llfloaterspellchecksettings.cpp @@ -88,11 +88,13 @@ void LLFloaterSpellCheckerSettings::onBtnMove(const std::string& from, const std row["columns"][0]["font"]["style"] = "NORMAL"; std::vector<LLScrollListItem*> sel_items = from_ctrl->getAllSelected(); - for (std::vector<LLScrollListItem*>::const_iterator sel_it = sel_items.begin(); sel_it != sel_items.end(); ++sel_it) + std::vector<LLScrollListItem*>::const_iterator sel_it; + for ( sel_it = sel_items.begin(); sel_it != sel_items.end(); ++sel_it) { row["value"] = (*sel_it)->getValue(); row["columns"][0]["value"] = (*sel_it)->getColumn(0)->getValue(); to_ctrl->addElement(row); + to_ctrl->setSelectedByValue( (*sel_it)->getValue(), true ); } from_ctrl->deleteSelectedItems(); } |