summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia.cpp
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2010-08-26 12:26:31 -0700
committerMonroe Linden <monroe@lindenlab.com>2010-08-26 12:26:31 -0700
commit74d4bbfa0a50df83a4fe419294609b6ef2af7a80 (patch)
treedcd51a7f752bee0563cc50e8684f006309abab0d /indra/newview/llviewermedia.cpp
parent6cd9103dcf6eb9992ac50b209ae4d99a22603554 (diff)
Added the MediaEnablePopups setting as a global on/off switch for media popups.
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r--indra/newview/llviewermedia.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index d89ee13b95..6f824b84e3 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -2835,8 +2835,11 @@ void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginCla
// ignore this click and let media plugin handle it
break;
default:
- // loadURL now handles distinguishing between _blank, _external, and other named targets.
- LLWeb::loadURL(url, target);
+ if(gSavedSettings.getBOOL("MediaEnablePopups"))
+ {
+ // loadURL now handles distinguishing between _blank, _external, and other named targets.
+ LLWeb::loadURL(url, target);
+ }
break;
}
};