summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterautoreplacesettings.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-05-25 19:24:38 -0400
committerOz Linden <oz@lindenlab.com>2012-05-25 19:24:38 -0400
commit6075badea0dbfe0eab451913a54bb729a498c39b (patch)
treea3223c19fdaf3da522793818586cc57e9ad5d0ae /indra/newview/llfloaterautoreplacesettings.cpp
parent23c780b3f66e9b94d985830bf0f428c3f8184cc6 (diff)
fix problems due to LLSD-30, and implement persistent settings
Diffstat (limited to 'indra/newview/llfloaterautoreplacesettings.cpp')
-rw-r--r--indra/newview/llfloaterautoreplacesettings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloaterautoreplacesettings.cpp b/indra/newview/llfloaterautoreplacesettings.cpp
index 7d6be10549..64b3b09276 100644
--- a/indra/newview/llfloaterautoreplacesettings.cpp
+++ b/indra/newview/llfloaterautoreplacesettings.cpp
@@ -302,7 +302,7 @@ void LLFloaterAutoReplaceSettings::onListUp()
if ( mSettings.increaseListPriority(selectedName) )
{
- mListNames->swapWithPrevious(selectedRow);
+ updateListNames();
updateListNamesControls();
}
else
@@ -321,7 +321,7 @@ void LLFloaterAutoReplaceSettings::onListDown()
if ( mSettings.decreaseListPriority(selectedName) )
{
- mListNames->swapWithNext(selectedRow);
+ updateListNames();
updateListNamesControls();
}
else
@@ -529,6 +529,7 @@ void LLFloaterAutoReplaceSettings::onExportList()
void LLFloaterAutoReplaceSettings::onAddEntry()
{
mPreviousKeyword.clear();
+ mReplacementsList->deselectAllItems(false /* don't call commit */);
mKeyword->clear();
mReplacement->clear();
enableReplacementEntry();