summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-03-20 15:48:01 +0000
committerTofu Buzzard <no-email>2011-03-20 15:48:01 +0000
commitfb862afc8b9b48ebcd3902f3324cb60c9af623d4 (patch)
tree76830ee74e2bcfcc16565b976b3e8632c90efb84 /indra/newview
parent2e7771d9866a5006c8423064ca30bb654b143fef (diff)
revert a bunch of stuff from my local repo so this can go in minimally.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloatersearch.cpp14
-rw-r--r--indra/newview/llfloatersearch.h2
-rwxr-xr-xindra/newview/llmeshrepository.cpp8
3 files changed, 13 insertions, 11 deletions
diff --git a/indra/newview/llfloatersearch.cpp b/indra/newview/llfloatersearch.cpp
index 1e321674a7..2041fac8d8 100644
--- a/indra/newview/llfloatersearch.cpp
+++ b/indra/newview/llfloatersearch.cpp
@@ -103,14 +103,14 @@ BOOL LLFloaterSearch::postBuild()
void LLFloaterSearch::onOpen(const LLSD& key)
{
- if ( (key.has("category")) || ((mBrowser) && (mBrowser->getCurrentNavUrl().empty())) )
- {
- // new search triggered - blank the page while loading, instead of
- // temporarily showing stale results
- mBrowser->navigateTo("about:blank");
+ search(key);
+}
- 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)
diff --git a/indra/newview/llfloatersearch.h b/indra/newview/llfloatersearch.h
index 615c099d0d..ba4dc4c0fa 100644
--- a/indra/newview/llfloatersearch.h
+++ b/indra/newview/llfloatersearch.h
@@ -53,6 +53,8 @@ public:
/// see search() for details on the key parameter.
/*virtual*/ void onOpen(const LLSD& key);
+ /*virtual*/ void onClose(bool app_quitting);
+
/// perform a search with the specific search term.
/// The key should be a map that can contain the following keys:
/// - "id": specifies the text phrase to search for
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 986b8cd509..93e773d33b 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -3532,7 +3532,7 @@ void LLPhysicsDecomp::run()
if (!stages)
{
- //num_stages = decomp->getStages(&stages);
+ num_stages = decomp->getStages(&stages);
}
for (S32 i = 0; i < num_stages; i++)
@@ -3554,9 +3554,9 @@ void LLPhysicsDecomp::run()
S32& id = *(mCurRequest->mDecompID);
if (id == -1)
{
- //decomp->genDecomposition(id);
+ decomp->genDecomposition(id);
}
- //decomp->bindDecomposition(id);
+ decomp->bindDecomposition(id);
if (mCurRequest->mStage == "single_hull")
{
@@ -3569,7 +3569,7 @@ void LLPhysicsDecomp::run()
}
}
- //decomp->quitThread();
+ decomp->quitThread();
if (mSignal->isLocked())
{ //let go of mSignal's associated mutex