Add setting to prevent script errors from stealing focus

This commit is contained in:
Lirusaito
2013-06-23 04:05:25 -04:00
parent 62f5e73767
commit e7669cc94b
5 changed files with 17 additions and 1 deletions

View File

@@ -1155,7 +1155,8 @@ void LLScriptEdCore::onErrorList(LLUICtrl*, void* user_data)
//llinfos << "LLScriptEdCore::onErrorList() - " << row << ", "
//<< column << llendl;
self->mEditor->setCursor(row, column);
self->mEditor->setFocus(TRUE);
if (gSavedSettings.getBOOL("LiruScriptErrorsStealFocus"))
self->mEditor->setFocus(TRUE);
}
}