diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-04-09 10:50:18 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-04-09 10:50:18 +0300 |
commit | 83bd0625f058e0ca64deb3eaa4ccd87c09c4624f (patch) | |
tree | 06988bec44cd19b00a590a6c26a01afeefeb0f64 | |
parent | 508487bdee53daf385653561fc14193dd3fc69a3 (diff) |
MAINT-27 FIXED Prevent pasting non-ascii chars to avoid creating outfits with empty name.
-rwxr-xr-x | indra/newview/lltoastalertpanel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp index 6083210080..c6e4fdf25a 100755 --- a/indra/newview/lltoastalertpanel.cpp +++ b/indra/newview/lltoastalertpanel.cpp @@ -267,6 +267,11 @@ LLToastAlertPanel::LLToastAlertPanel( LLNotificationPtr notification, bool modal mLineEditor->setMaxTextChars(edit_text_max_chars); mLineEditor->setText(edit_text_contents); + if("SaveOutfitAs" == mNotification->getName()) + { + mLineEditor->setPrevalidate(&LLTextValidate::validateASCII); + } + // decrease limit of line editor of teleport offer dialog to avoid truncation of // location URL in invitation message, see EXT-6891 if ("OfferTeleport" == mNotification->getName()) |