diff options
author | Richard Nelson <none@none> | 2010-03-29 15:28:48 -0700 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-03-29 15:28:48 -0700 |
commit | e50586043b3920864d58bb2243d977705d6669aa (patch) | |
tree | 6bf311b77bdce138816f9d74f071bff5e1058531 /indra/newview/llweb.cpp | |
parent | d98b2ce4865dc90e635fe75d676e4965bccfa793 (diff) |
EXT-3258 - Viewer freezes while external web browser loads page
reviewed by Callum
Diffstat (limited to 'indra/newview/llweb.cpp')
-rw-r--r-- | indra/newview/llweb.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llweb.cpp b/indra/newview/llweb.cpp index 3385b75c65..1a64f9d881 100644 --- a/indra/newview/llweb.cpp +++ b/indra/newview/llweb.cpp @@ -103,8 +103,18 @@ void LLWeb::loadURLInternal(const std::string &url) // static void LLWeb::loadURLExternal(const std::string& url) { + loadURLExternal(url, true); +} + + +// static +void LLWeb::loadURLExternal(const std::string& url, bool async) +{ std::string escaped_url = escapeURL(url); - gViewerWindow->getWindow()->spawnWebBrowser(escaped_url); + if (gViewerWindow) + { + gViewerWindow->getWindow()->spawnWebBrowser(escaped_url, async); + } } |