diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-04-05 00:10:08 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-04-05 00:10:08 +0300 |
commit | 7a402e352d1982e6361c966590eb07556418154b (patch) | |
tree | 9d3974853725de4096243fcb185e194f8278c690 /indra/newview/llinventorygallery.cpp | |
parent | f5809ad862c0a9b1004a2c9a779df99ff4555a1f (diff) |
SL-19379 selection fix
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index 8c2f4c2214..b964ecff05 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -794,7 +794,7 @@ void LLInventoryGallery::showContextMenu(LLUICtrl* ctrl, S32 x, S32 y, const LLU void LLInventoryGallery::changeItemSelection(const LLUUID& item_id) { - if ((mItemMap.count(item_id) > 0) && (mSelectedItemID == item_id)) + if ((mItemMap.count(item_id) == 0) || (mSelectedItemID == item_id)) return; if (mItemMap[mSelectedItemID]) @@ -1136,6 +1136,7 @@ LLInventoryGalleryItem::LLInventoryGalleryItem(const Params& p) mUUID(LLUUID()), mIsFolder(true), mIsLink(false), + mHidden(false), mGallery(NULL), mType(LLAssetType::AT_NONE), mSortGroup(SG_ITEM) @@ -1151,9 +1152,8 @@ BOOL LLInventoryGalleryItem::postBuild() { mNameText = getChild<LLTextBox>("item_name"); mSuffixText = getChild<LLTextBox>("suffix_text"); - mTextBgPanel = getChild<LLPanel>("text_bg_panel"); - mHidden = false; + return TRUE; } |