diff options
author | skolb <none@none> | 2009-12-14 11:23:00 -0800 |
---|---|---|
committer | skolb <none@none> | 2009-12-14 11:23:00 -0800 |
commit | 93f827ec7855c419c19dbf1a055e7cdc546eb650 (patch) | |
tree | 228ffeda42bcecba0ade0c4ecfd4a874cc2c4682 /indra | |
parent | 962a42a331992344ecef4b5b8acd209b953c4512 (diff) | |
parent | cbeadddbafe63eeb431a6f34909142de3599fa26 (diff) |
Merge latest viewer 2-0 changes into media
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 14 | ||||
-rw-r--r-- | indra/newview/llpanelmaininventory.h | 3 |
2 files changed, 15 insertions, 2 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index cef21e85d6..c0da8f3daa 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -530,11 +530,23 @@ BOOL LLPanelMainInventory::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, return handled; } -void LLPanelMainInventory::changed(U32 mask) +// virtual +void LLPanelMainInventory::changed(U32) { + // empty, but must have this defined for abstract base class. } +// virtual +void LLPanelMainInventory::draw() +{ + if (mActivePanel && mFilterEditor) + { + mFilterEditor->setText(mActivePanel->getFilterSubString()); + } + LLPanel::draw(); +} + void LLPanelMainInventory::setFilterTextFromFilter() { mFilterText = mActivePanel->getFilter()->getFilterText(); diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h index 92443df369..920de2665c 100644 --- a/indra/newview/llpanelmaininventory.h +++ b/indra/newview/llpanelmaininventory.h @@ -72,7 +72,8 @@ public: void* cargo_data, EAcceptance* accept, std::string& tooltip_msg); - /*virtual*/ void changed(U32 mask); + /*virtual*/ void changed(U32); + /*virtual*/ void draw(); LLInventoryPanel* getPanel() { return mActivePanel; } LLInventoryPanel* getActivePanel() { return mActivePanel; } |