From c882518f26ef81e697f3d29e79ad4549295291fb Mon Sep 17 00:00:00 2001 From: Beq Date: Sun, 16 Jun 2024 23:26:41 +0100 Subject: [PATCH] Try to get a little more knowledge about the stuck notifications. --- indra/llui/llflatlistview.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp index 812941d861..5c556e2e64 100644 --- a/indra/llui/llflatlistview.cpp +++ b/indra/llui/llflatlistview.cpp @@ -251,8 +251,14 @@ bool LLFlatListView::removeItemByValue(const LLSD& value, bool rearrange) if (value.isUndefined()) return false; item_pair_t* item_pair = getItemPair(value); - if (!item_pair) return false; - + // try to find where the notifications get stuck + // if (!item_pair) return false; + if (!item_pair) + { + LL_WARNS() << "LLFlatListView::removeItemByValue: item_pair not found" << LL_ENDL; + return false; + } + // return removeItemPair(item_pair, rearrange); } @@ -1105,7 +1111,13 @@ bool LLFlatListView::removeItemPair(item_pair_t* item_pair, bool rearrange) } } - if (!deleted) return false; + // try to find where the notifications get stuck + // if (!deleted) return false; + if (!deleted) + { + LL_WARNS() << "LLFlatListView::removeItemPair: item not found" << LL_ENDL; + return false; + } for (pairs_iterator_t it = mSelectedItemPairs.begin(); it != mSelectedItemPairs.end(); ++it) {