Skip to content
Snippets Groups Projects
Commit 5e244834 authored by Tofu Linden's avatar Tofu Linden
Browse files

WEB-1819 FIXED Find always resets to start page

(plus many dupes).

Enough seesawing, I hope - see WEB-1819 for discussion and the nature of the compromise.
Patch by Kitty Barnett, reviewed by my.
parent 4a412730
No related branches found
No related tags found
No related merge requests found
...@@ -329,6 +329,7 @@ Khyota Wulluf ...@@ -329,6 +329,7 @@ Khyota Wulluf
VWR-9966 VWR-9966
Kitty Barnett Kitty Barnett
VWR-19699 VWR-19699
WEB-1819
Kunnis Basiat Kunnis Basiat
VWR-82 VWR-82
VWR-102 VWR-102
......
...@@ -113,14 +113,10 @@ BOOL LLFloaterSearch::postBuild() ...@@ -113,14 +113,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)
......
...@@ -59,8 +59,6 @@ class LLFloaterSearch : ...@@ -59,8 +59,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