Fix the issue with the doubleclick callback for the script compile errors list breaking when the user has opted not to let script errors steal focus

This commit is contained in:
Lirusaito
2013-06-27 17:27:55 -04:00
parent fe238d0563
commit f6a1371f70

View File

@@ -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);
}