SL-16020 FIXED The gesture's name is changed to default 'New Gesture' name after the first gesture's editing

meow-7.2.2
Mnikolenko Productengine 2021-09-21 17:13:48 +03:00
parent c990a6a82d
commit 7c00db9e0e
1 changed files with 0 additions and 6 deletions

View File

@ -347,9 +347,6 @@ BOOL LLPreviewGesture::postBuild()
LLTextBox* text;
LLCheckBoxCtrl* check;
edit = getChild<LLLineEditor>("name");
edit->setKeystrokeCallback(onKeystrokeCommit, this);
edit = getChild<LLLineEditor>("desc");
edit->setKeystrokeCallback(onKeystrokeCommit, this);
@ -482,9 +479,6 @@ BOOL LLPreviewGesture::postBuild()
{
getChild<LLUICtrl>("desc")->setValue(item->getDescription());
getChild<LLLineEditor>("desc")->setPrevalidate(&LLTextValidate::validateASCIIPrintableNoPipe);
getChild<LLUICtrl>("name")->setValue(item->getName());
getChild<LLLineEditor>("name")->setPrevalidate(&LLTextValidate::validateASCIIPrintableNoPipe);
}
return LLPreview::postBuild();