Show warning when disabling Javascript only if Javascript is toggled off

Wed, 14 Feb 2018 22:17:38 +0100

author
Ansariel
date
Wed, 14 Feb 2018 22:17:38 +0100
changeset 55076
3c1e808f4299
parent 55075
695fc7181284
child 55077
a6108d1c5449

Show warning when disabling Javascript only if Javascript is toggled off

indra/newview/llfloaterpreference.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llfloaterpreference.cpp	Wed Feb 14 22:12:49 2018 +0100
     1.2 +++ b/indra/newview/llfloaterpreference.cpp	Wed Feb 14 22:17:38 2018 +0100
     1.3 @@ -1851,7 +1851,10 @@
     1.4  //[FIX JIRA-1971 : SJ] Show an notify when Javascript setting change
     1.5  void LLFloaterPreference::onClickJavascript()
     1.6  {
     1.7 -	LLNotificationsUtil::add("DisableJavascriptBreaksSearch");
     1.8 +	if (!gSavedSettings.getBOOL("BrowserJavascriptEnabled"))
     1.9 +	{
    1.10 +		LLNotificationsUtil::add("DisableJavascriptBreaksSearch");
    1.11 +	}
    1.12  }
    1.13  
    1.14  /*

mercurial