From 109e2a25f8a71dae79fba7b5a58b9f38fcbeb76d Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 18 Oct 2008 20:46:26 -0700 Subject: Added menu option for inworld browser. --- linden/indra/newview/llfloaterhtmlhelp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linden/indra/newview/llfloaterhtmlhelp.cpp') diff --git a/linden/indra/newview/llfloaterhtmlhelp.cpp b/linden/indra/newview/llfloaterhtmlhelp.cpp index a9d2e46..7fe4d59 100644 --- a/linden/indra/newview/llfloaterhtmlhelp.cpp +++ b/linden/indra/newview/llfloaterhtmlhelp.cpp @@ -150,6 +150,7 @@ void LLFloaterMediaBrowser::onLocationChange( const EventType& eventIn ) childSetEnabled("back", mBrowser->canNavigateBack()); childSetEnabled("forward", mBrowser->canNavigateForward()); childSetEnabled("reload", TRUE); + gSavedSettings.setString("BrowserLastVisited", truncated_url); } LLFloaterMediaBrowser* LLFloaterMediaBrowser::showInstance(const LLSD& media_url) @@ -160,6 +161,14 @@ LLFloaterMediaBrowser* LLFloaterMediaBrowser::showInstance(const LLSD& media_url return floaterp; } +void LLFloaterMediaBrowser::show() +{ + //Show home url if new session, last visited if not + std::string last_url = gSavedSettings.getString("BrowserLastVisited"); + if(last_url.empty()) + last_url = gSavedSettings.getString("BrowserHome"); + showInstance(last_url); +} //static void LLFloaterMediaBrowser::onEnterAddress(LLUICtrl* ctrl, void* user_data) { -- cgit v1.1