diff options
author | simon <none@none> | 2013-08-07 15:58:14 -0700 |
---|---|---|
committer | simon <none@none> | 2013-08-07 15:58:14 -0700 |
commit | 3dbe4e1b30977aad4199ed2f013acb93d4500b56 (patch) | |
tree | c1d615c411e5bcfbd911e23287677a9768e66a5e /indra | |
parent | d27fc4ad338cb2839363ce2cca70359c82da5b98 (diff) | |
parent | d249264143160dea5f973cdaec2fb3bde0ef463a (diff) |
Merge
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llpanelmaininventory.cpp | 7 | ||||
-rwxr-xr-x | indra/newview/llpanelmaininventory.h | 3 | ||||
-rwxr-xr-x | indra/newview/llsidepanelinventory.cpp | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index d6535c88e9..c38a78365a 100755 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -540,6 +540,13 @@ void LLPanelMainInventory::changed(U32) updateItemcountText(); } +void LLPanelMainInventory::setFocusFilterEditor() +{ + if(mFilterEditor) + { + mFilterEditor->setFocus(true); + } +} // virtual void LLPanelMainInventory::draw() diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h index 899931aa89..4fd93b24a4 100755 --- a/indra/newview/llpanelmaininventory.h +++ b/indra/newview/llpanelmaininventory.h @@ -82,6 +82,9 @@ public: void setSelectCallback(const LLFolderView::signal_t::slot_type& cb); void onFilterEdit(const std::string& search_string ); + + void setFocusFilterEditor(); + protected: // // Misc functions diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index 8915bb2fef..cbf43dbb93 100755 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -397,7 +397,7 @@ void LLSidepanelInventory::onToggleInboxBtn() void LLSidepanelInventory::onOpen(const LLSD& key) { LLFirstUse::newInventory(false); - + mPanelMainInventory->setFocusFilterEditor(); #if AUTO_EXPAND_INBOX // Expand the inbox if we have fresh items LLPanelMarketplaceInbox * inbox = findChild<LLPanelMarketplaceInbox>(MARKETPLACE_INBOX_PANEL); |