From f6a1371f707ab0d2a89eb825ba3f50887ca70624 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 27 Jun 2013 17:27:55 -0400 Subject: [PATCH] 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 --- indra/newview/llpreviewscript.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }