Skip to content
Snippets Groups Projects
Commit c3cb28ec authored by Oz Linden's avatar Oz Linden
Browse files

minor cosmetic changes to spelling floater

parent 6c0922df
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ BOOL LLFloaterSpellCheckerSettings::postBuild(void) ...@@ -69,7 +69,7 @@ BOOL LLFloaterSpellCheckerSettings::postBuild(void)
getChild<LLUICtrl>("spellcheck_main_combo")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::refreshDictionaries, this, false)); getChild<LLUICtrl>("spellcheck_main_combo")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::refreshDictionaries, this, false));
getChild<LLUICtrl>("spellcheck_moveleft_btn")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::onBtnMove, this, "spellcheck_active_list", "spellcheck_available_list")); getChild<LLUICtrl>("spellcheck_moveleft_btn")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::onBtnMove, this, "spellcheck_active_list", "spellcheck_available_list"));
getChild<LLUICtrl>("spellcheck_moveright_btn")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::onBtnMove, this, "spellcheck_available_list", "spellcheck_active_list")); getChild<LLUICtrl>("spellcheck_moveright_btn")->setCommitCallback(boost::bind(&LLFloaterSpellCheckerSettings::onBtnMove, this, "spellcheck_available_list", "spellcheck_active_list"));
center();
return true; return true;
} }
...@@ -85,8 +85,6 @@ void LLFloaterSpellCheckerSettings::onBtnMove(const std::string& from, const std ...@@ -85,8 +85,6 @@ void LLFloaterSpellCheckerSettings::onBtnMove(const std::string& from, const std
LLSD row; LLSD row;
row["columns"][0]["column"] = "name"; row["columns"][0]["column"] = "name";
row["columns"][0]["font"]["name"] = "SANSSERIF_SMALL";
row["columns"][0]["font"]["style"] = "NORMAL";
std::vector<LLScrollListItem*> sel_items = from_ctrl->getAllSelected(); std::vector<LLScrollListItem*> sel_items = from_ctrl->getAllSelected();
std::vector<LLScrollListItem*>::const_iterator sel_it; std::vector<LLScrollListItem*>::const_iterator sel_it;
...@@ -164,7 +162,6 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings) ...@@ -164,7 +162,6 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings)
dict_cur = LLSpellChecker::instance().getPrimaryDictionary(); dict_cur = LLSpellChecker::instance().getPrimaryDictionary();
} }
dict_combo->clearRows(); dict_combo->clearRows();
dict_combo->setEnabled(enabled);
const LLSD& dict_map = LLSpellChecker::getDictionaryMap(); const LLSD& dict_map = LLSpellChecker::getDictionaryMap();
if (dict_map.size()) if (dict_map.size())
...@@ -182,6 +179,7 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings) ...@@ -182,6 +179,7 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings)
dict_combo->clear(); dict_combo->clear();
} }
} }
dict_combo->setEnabled(enabled);
// Populate the available and active dictionary list // Populate the available and active dictionary list
LLScrollListCtrl* avail_ctrl = findChild<LLScrollListCtrl>("spellcheck_available_list"); LLScrollListCtrl* avail_ctrl = findChild<LLScrollListCtrl>("spellcheck_available_list");
...@@ -210,8 +208,6 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings) ...@@ -210,8 +208,6 @@ void LLFloaterSpellCheckerSettings::refreshDictionaries(bool from_settings)
LLSD row; LLSD row;
row["columns"][0]["column"] = "name"; row["columns"][0]["column"] = "name";
row["columns"][0]["font"]["name"] = "SANSSERIF_SMALL";
row["columns"][0]["font"]["style"] = "NORMAL";
active_ctrl->clearRows(); active_ctrl->clearRows();
active_ctrl->setEnabled(enabled); active_ctrl->setEnabled(enabled);
......
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