diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-02 02:58:56 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-02 02:58:56 +0300 |
commit | 959829bb7ef737bd5d9748dd27e074d23974e654 (patch) | |
tree | 34e8eb225306f8cd2aa64734d35c0a4b5225c109 /indra | |
parent | c813a322fb89e94f3666cea3ff16b69127f3dcc1 (diff) |
SL-19796 Small cleanup
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 22 | ||||
-rw-r--r-- | indra/newview/llpanelmaininventory.h | 2 |
2 files changed, 3 insertions, 21 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 6a5b0eebed..e4de6078f3 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -121,9 +121,7 @@ LLPanelMainInventory::LLPanelMainInventory(const LLPanel::Params& p) mForceShowInvLayout(false), mViewMode(MODE_COMBINATION), mListViewRootUpdatedConnection(), - mGalleryRootUpdatedConnection(), - mDelayedCombGalleryScroll(false), - mDelayedCombInvPanelScroll(false) + mGalleryRootUpdatedConnection() { // Menu Callbacks (non contex menus) mCommitCallbackRegistrar.add("Inventory.DoToSelected", boost::bind(&LLPanelMainInventory::doToSelected, this, _2)); @@ -2548,26 +2546,12 @@ void LLPanelMainInventory::setGallerySelection(const LLUUID& item_id, bool new_w if(mCombinationGalleryPanel->getFilter().checkAgainstFilterThumbnails(item_id)) { mCombinationGalleryPanel->changeItemSelection(item_id, false); - if(new_window) - { - mDelayedCombGalleryScroll = new_window; - } - else - { - scrollToGallerySelection(); - } + scrollToGallerySelection(); } else { mCombinationInventoryPanel->setSelection(item_id, true); - if(new_window) - { - mDelayedCombInvPanelScroll = new_window; - } - else - { - scrollToInvPanelSelection(); - } + scrollToInvPanelSelection(); } } else if (mSingleFolderMode && isListViewMode()) diff --git a/indra/newview/llpanelmaininventory.h b/indra/newview/llpanelmaininventory.h index 61ccfc02a1..ae2e07da11 100644 --- a/indra/newview/llpanelmaininventory.h +++ b/indra/newview/llpanelmaininventory.h @@ -250,8 +250,6 @@ private: bool mForceShowInvLayout; bool mReshapeInvLayout; - bool mDelayedCombGalleryScroll; - bool mDelayedCombInvPanelScroll; // List Commands // //////////////////////////////////////////////////////////////////////////////// }; |