From c8f3700f5e8347ef6f267d06500b00c8cf39c238 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 19 Aug 2014 14:50:35 +0200 Subject: [PATCH] FIRE-14269: Open "Find" tab in area search by default --- indra/newview/fsareasearch.cpp | 5 +++++ indra/newview/fsareasearch.h | 1 + 2 files changed, 6 insertions(+) diff --git a/indra/newview/fsareasearch.cpp b/indra/newview/fsareasearch.cpp index 3d9b1d159e..379d209c21 100644 --- a/indra/newview/fsareasearch.cpp +++ b/indra/newview/fsareasearch.cpp @@ -185,6 +185,11 @@ BOOL FSAreaSearch::postBuild() return LLFloater::postBuild(); } +void FSAreaSearch::onOpen(const LLSD& key) +{ + mTab->selectTab(1); +} + void FSAreaSearch::draw() { LLFloater::draw(); diff --git a/indra/newview/fsareasearch.h b/indra/newview/fsareasearch.h index 9414f8cc95..cca55ca4a7 100644 --- a/indra/newview/fsareasearch.h +++ b/indra/newview/fsareasearch.h @@ -111,6 +111,7 @@ public: /*virtual*/ BOOL postBuild(); virtual void draw(); + virtual void onOpen(const LLSD& key); void callbackLoadFullName(const LLUUID& id, const std::string& full_name); void processObjectProperties(LLMessageSystem* msg);