diff options
| author | skolb <none@none> | 2009-12-21 09:31:48 -0800 |
|---|---|---|
| committer | skolb <none@none> | 2009-12-21 09:31:48 -0800 |
| commit | ec8738ac4501fd2158ca2ebeb146239f98dcd971 (patch) | |
| tree | c63d3222fbb5f8036b012c60e8622cd085fbe60d /indra/newview/llnavigationbar.cpp | |
| parent | b910de4ad7f91bb2022bfb8304c3dea32c0a4857 (diff) | |
| parent | d894c7a0d8292ce2114e88f382dcf6187b0d2535 (diff) | |
Merge viewer 2-0 into media
Diffstat (limited to 'indra/newview/llnavigationbar.cpp')
| -rw-r--r-- | indra/newview/llnavigationbar.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/newview/llnavigationbar.cpp b/indra/newview/llnavigationbar.cpp index 6210151d1b..71dc0f9011 100644 --- a/indra/newview/llnavigationbar.cpp +++ b/indra/newview/llnavigationbar.cpp @@ -51,6 +51,8 @@ #include "llsidetray.h" #include "llslurl.h" #include "llurlsimstring.h" +#include "llurlregistry.h" +#include "llurldispatcher.h" #include "llviewerinventory.h" #include "llviewermenu.h" #include "llviewerparcelmgr.h" @@ -58,6 +60,7 @@ #include "llappviewer.h" #include "llviewercontrol.h" #include "llfloatermediabrowser.h" +#include "llweb.h" #include "llinventorymodel.h" #include "lllandmarkactions.h" @@ -543,7 +546,20 @@ void LLNavigationBar::onRegionNameResponse( // Invalid location? if (!region_handle) { - invokeSearch(typed_location); + // handle any secondlife:// SLapps, or + // display http:// URLs in the media browser, or + // anything else is sent to the search floater + if (LLUrlRegistry::instance().isUrl(typed_location)) + { + if (! LLURLDispatcher::dispatchFromTextEditor(typed_location)) + { + LLWeb::loadURL(typed_location); + } + } + else + { + invokeSearch(typed_location); + } return; } |
