Fix Issue 1653: Using Search Box causes crash
This commit is contained in:
@@ -454,13 +454,13 @@ void LLFloaterDirectory::requestClassifieds()
|
||||
|
||||
void LLFloaterDirectory::searchInAll(const std::string& search_text)
|
||||
{
|
||||
start();
|
||||
LLPanelDirFindAllInterface::search(sInstance->mFindAllPanel, search_text);
|
||||
performQueryOn2("classified_panel", search_text);
|
||||
performQueryOn2("events_panel", search_text);
|
||||
performQueryOn2("groups_panel", search_text);
|
||||
performQueryOn2("people_panel", search_text);
|
||||
performQueryOn2("places_panel", search_text);
|
||||
sInstance->open();
|
||||
}
|
||||
|
||||
void LLFloaterDirectory::showFindAll(const std::string& search_text)
|
||||
@@ -582,7 +582,7 @@ void LLFloaterDirectory::focusCurrentPanel()
|
||||
}
|
||||
|
||||
// static
|
||||
void LLFloaterDirectory::showPanel(const std::string& tabname)
|
||||
void LLFloaterDirectory::start()
|
||||
{
|
||||
// This function gets called when web browser clicks are processed,
|
||||
// so we don't delete the existing panel, which would delete the
|
||||
@@ -592,6 +592,12 @@ void LLFloaterDirectory::showPanel(const std::string& tabname)
|
||||
sInstance = new LLFloaterDirectory("directory");
|
||||
}
|
||||
sInstance->open(); /*Flawfinder: ignore*/
|
||||
}
|
||||
|
||||
// static
|
||||
void LLFloaterDirectory::showPanel(const std::string& tabname)
|
||||
{
|
||||
start();
|
||||
sInstance->childShowTab("Directory Tabs", tabname);
|
||||
sInstance->focusCurrentPanel();
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ public:
|
||||
private:
|
||||
static void performQueryOn(const std::string& name, const std::string& search_text);
|
||||
static void performQueryOn2(const std::string& name, const std::string& search_text);
|
||||
static void start();
|
||||
static void showPanel(const std::string& tabname);
|
||||
/*virtual*/ void onClose(bool app_quitting);
|
||||
void focusCurrentPanel();
|
||||
|
||||
Reference in New Issue
Block a user