diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llweb.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llweb.cpp')
-rw-r--r-- | linden/indra/newview/llweb.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/newview/llweb.cpp b/linden/indra/newview/llweb.cpp index 97d2cbf..dcae7a0 100644 --- a/linden/indra/newview/llweb.cpp +++ b/linden/indra/newview/llweb.cpp | |||
@@ -36,8 +36,8 @@ | |||
36 | 36 | ||
37 | #include "llwindow.h" | 37 | #include "llwindow.h" |
38 | 38 | ||
39 | //#include "llfloaterhtml.h" | ||
40 | #include "llviewercontrol.h" | 39 | #include "llviewercontrol.h" |
40 | #include "llfloaterhtmlhelp.h" | ||
41 | 41 | ||
42 | // static | 42 | // static |
43 | void LLWeb::initClass() | 43 | void LLWeb::initClass() |
@@ -48,7 +48,14 @@ void LLWeb::initClass() | |||
48 | // static | 48 | // static |
49 | void LLWeb::loadURL(const std::string& url) | 49 | void LLWeb::loadURL(const std::string& url) |
50 | { | 50 | { |
51 | loadURLExternal(url); | 51 | if (gSavedSettings.getBOOL("UseExternalBrowser")) |
52 | { | ||
53 | loadURLExternal(url); | ||
54 | } | ||
55 | else | ||
56 | { | ||
57 | LLFloaterMediaBrowser::showInstance(url); | ||
58 | } | ||
52 | } | 59 | } |
53 | 60 | ||
54 | 61 | ||
@@ -56,9 +63,7 @@ void LLWeb::loadURL(const std::string& url) | |||
56 | void LLWeb::loadURLExternal(const std::string& url) | 63 | void LLWeb::loadURLExternal(const std::string& url) |
57 | { | 64 | { |
58 | std::string escaped_url = escapeURL(url); | 65 | std::string escaped_url = escapeURL(url); |
59 | #if LL_LIBXUL_ENABLED | ||
60 | spawn_web_browser(escaped_url.c_str()); | 66 | spawn_web_browser(escaped_url.c_str()); |
61 | #endif | ||
62 | } | 67 | } |
63 | 68 | ||
64 | 69 | ||