diff --git a/indra/newview/fsdata.h b/indra/newview/fsdata.h index f6e5cc16b7..3e36bd5d1d 100644 --- a/indra/newview/fsdata.h +++ b/indra/newview/fsdata.h @@ -85,6 +85,8 @@ public: FSDataAgent* getAgent(LLUUID avatar_id); LLSD allowed_login(); + + static bool enableLegacySearch() {return false;} std::string processRequestForInfo(LLUUID requester,std::string message, std::string name, LLUUID sessionid); static LLSD getSystemInfo(); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 1f90a7a591..22fec8e6e5 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -214,6 +214,7 @@ #include "fsfloatersearch.h" #include "fslslbridge.h" #include "fswsassetblacklist.h" +#include "llfloatersearch.h" #include "llfloatersidepanelcontainer.h" #include "llnotificationmanager.h" #include "NACLantispam.h" @@ -3947,7 +3948,25 @@ bool process_login_success_response(U32 &first_sim_size_x, U32 &first_sim_size_y LL_DEBUGS("OS_SETTINGS") << "no destination_guide_url in login response" << llendl; } // -#endif // OPENSIM // + +// Legacy search killswitch! + if (!LLGridManager::getInstance()->isInOpenSim()) +#endif // OPENSIM + { + if (FSData::enableLegacySearch()) + { + LLFloaterReg::add("search", "floater_fs_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); + } + else + { + LLFloaterReg::add("search", "floater_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); + } + } + else + { + LLFloaterReg::add("search", "floater_fs_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); + } +// bool success = false; // JC: gesture loading done below, when we have an asset system diff --git a/indra/newview/llviewerfloaterreg.cpp b/indra/newview/llviewerfloaterreg.cpp index f64583be22..3abd4f52ad 100644 --- a/indra/newview/llviewerfloaterreg.cpp +++ b/indra/newview/llviewerfloaterreg.cpp @@ -339,7 +339,7 @@ void LLViewerFloaterReg::registerFloaters() LLFloaterReg::add("start_queue", "floater_script_queue.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("stop_queue", "floater_script_queue.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("snapshot", "floater_snapshot.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); - // Replacing LL search with Firestorm Search below + // Search floater is deferred to login now so we can tell what grid we're in. //LLFloaterReg::add("search", "floater_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("my_profile", "floater_my_web_profile.xml", (LLFloaterBuildFunc)&LLFloaterWebProfile::create); LLFloaterReg::add("profile", "floater_web_profile.xml", (LLFloaterBuildFunc)&LLFloaterWebProfile::create); @@ -386,7 +386,6 @@ void LLViewerFloaterReg::registerFloaters() LLFloaterReg::add("phototools_camera", "floater_phototools_camera.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("publish_classified_fs", "floater_publish_classified.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("quickprefs", "floater_quickprefs.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); - LLFloaterReg::add("search", "floater_fs_search.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("search_replace", "floater_search_replace.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("secondary_inventory", "floater_my_inventory.xml", (LLFloaterBuildFunc)&LLFloaterReg::build); LLFloaterReg::add("script_recover", "floater_script_recover.xml", (LLFloaterBuildFunc)&LLFloaterReg::build);