summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterautoreplacesettings.cpp
diff options
context:
space:
mode:
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();