SL-19796 Small cleanup

meow-7.2.2
Andrey Kleshchev 2023-06-02 02:58:56 +03:00
parent c813a322fb
commit 959829bb7e
2 changed files with 3 additions and 21 deletions

View File

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

View File

@ -250,8 +250,6 @@ private:
bool mForceShowInvLayout;
bool mReshapeInvLayout;
bool mDelayedCombGalleryScroll;
bool mDelayedCombInvPanelScroll;
// List Commands //
////////////////////////////////////////////////////////////////////////////////
};