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) {