// Checked: 2011-11-08 (RLVa-1.5.0) void RlvFloaterStrings::refresh() { m_strStringCurrent = (-1 != m_pStringList->getCurrentIndex()) ? m_pStringList->getSelectedValue().asString() : LLStringUtil::null; LLTextEditor* pStringDescr = findChild<LLTextEditor>("string_descr"); pStringDescr->clear(); LLTextEditor* pStringValue = findChild<LLTextEditor>("string_value"); pStringValue->setEnabled(!m_strStringCurrent.empty()); pStringValue->clear(); if (!m_strStringCurrent.empty()) { if (m_sdStringsInfo[m_strStringCurrent].has("description")) pStringDescr->setText(m_sdStringsInfo[m_strStringCurrent]["description"].asString()); pStringValue->setText(RlvStrings::getString(m_strStringCurrent)); pStringValue->makePristine(); } findChild<LLUICtrl>("default_btn")->setEnabled(!m_strStringCurrent.empty()); }