SL-19823 Fix list view not focusing properly

master
Andrey Kleshchev 2023-06-12 23:08:12 +03:00
parent bc67a7445c
commit 546c6a09d8
1 changed files with 10 additions and 7 deletions

View File

@ -2425,14 +2425,17 @@ void LLPanelMainInventory::updateCombinationVisibility()
mCombinationListLayoutPanel->setShape(list_latout, true /*tell stack to account for new shape*/);
}
}
}
if (mCombInvUUIDNeedsRename.notNull() && mCombinationInventoryPanel->areViewsInitialized())
{
mCombinationInventoryPanel->setSelectionByID(mCombInvUUIDNeedsRename, TRUE);
mCombinationInventoryPanel->getRootFolder()->scrollToShowSelection();
mCombinationInventoryPanel->getRootFolder()->setNeedsAutoRename(TRUE);
mCombInvUUIDNeedsRename.setNull();
}
if (mSingleFolderMode
&& !isGalleryViewMode()
&& mCombInvUUIDNeedsRename.notNull()
&& mCombinationInventoryPanel->areViewsInitialized())
{
mCombinationInventoryPanel->setSelectionByID(mCombInvUUIDNeedsRename, TRUE);
mCombinationInventoryPanel->getRootFolder()->scrollToShowSelection();
mCombinationInventoryPanel->getRootFolder()->setNeedsAutoRename(TRUE);
mCombInvUUIDNeedsRename.setNull();
}
}