diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index d93bf847a..6613a0055 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -1155,8 +1155,7 @@ void LLScriptEdCore::onErrorList(LLUICtrl*, void* user_data) //llinfos << "LLScriptEdCore::onErrorList() - " << row << ", " //<< column << llendl; self->mEditor->setCursor(row, column); - if (gSavedSettings.getBOOL("LiruScriptErrorsStealFocus")) - self->mEditor->setFocus(TRUE); + self->mEditor->setFocus(TRUE); } } @@ -1187,7 +1186,8 @@ void LLScriptEdCore::selectFirstError() { // Select the first item; mErrorList->selectFirstItem(); - onErrorList(mErrorList, this); + if (gSavedSettings.getBOOL("LiruScriptErrorsStealFocus")) + onErrorList(mErrorList, this); }