meow-7.2.2
simon 2013-08-07 15:58:14 -07:00
commit 3dbe4e1b30
3 changed files with 11 additions and 1 deletions

View File

@ -540,6 +540,13 @@ void LLPanelMainInventory::changed(U32)
updateItemcountText();
}
void LLPanelMainInventory::setFocusFilterEditor()
{
if(mFilterEditor)
{
mFilterEditor->setFocus(true);
}
}
// virtual
void LLPanelMainInventory::draw()

View File

@ -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

View File

@ -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);