Skip to content
Snippets Groups Projects
Commit d210d535 authored by Tofu Buzzard's avatar Tofu Buzzard
Browse files

Backed out changeset d51528606985

(transplanted from 785883eceedc53d05807647d52608721170ccf8e)
(transplanted from 59e80ead6b226b77396983b72315dcf3da59f372)
(transplanted from 21ea9fb22a819525949cd86e5b7f6ac32fe44021)
parent 489a0118
No related branches found
No related tags found
No related merge requests found
...@@ -103,14 +103,10 @@ BOOL LLFloaterSearch::postBuild() ...@@ -103,14 +103,10 @@ BOOL LLFloaterSearch::postBuild()
void LLFloaterSearch::onOpen(const LLSD& key) void LLFloaterSearch::onOpen(const LLSD& key)
{ {
search(key); if ( (key.has("category")) || ((mBrowser) && (mBrowser->getCurrentNavUrl().empty())) )
} {
search(key);
void LLFloaterSearch::onClose(bool app_quitting) }
{
// tear down the web view so we don't show the previous search
// result when the floater is opened next time
destroy();
} }
void LLFloaterSearch::handleMediaEvent(LLPluginClassMedia *self, EMediaEvent event) void LLFloaterSearch::handleMediaEvent(LLPluginClassMedia *self, EMediaEvent event)
......
...@@ -53,8 +53,6 @@ class LLFloaterSearch : ...@@ -53,8 +53,6 @@ class LLFloaterSearch :
/// see search() for details on the key parameter. /// see search() for details on the key parameter.
/*virtual*/ void onOpen(const LLSD& key); /*virtual*/ void onOpen(const LLSD& key);
/*virtual*/ void onClose(bool app_quitting);
/// perform a search with the specific search term. /// perform a search with the specific search term.
/// The key should be a map that can contain the following keys: /// The key should be a map that can contain the following keys:
/// - "id": specifies the text phrase to search for /// - "id": specifies the text phrase to search for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment