diff options
Diffstat (limited to '')
-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 | ||