summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneloutfitedit.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 21:20:30 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-04-11 21:20:30 +0300
commitaf30c8c95b81e99c76bd5e08dcaab4c31dfdcac1 (patch)
tree44898e0a15a06085cccde8cfe7f696432a04e0b2 /indra/newview/llpaneloutfitedit.cpp
parent8171224a6510ac8b984dace5f10a6f92cb1e2942 (diff)
SL-19533 Don't try to restart fetchexcessively
No real point restarting, but due to significant changes decided to keep this around and raise asserts instead of removing.
Diffstat (limited to 'indra/newview/llpaneloutfitedit.cpp')
-rw-r--r--indra/newview/llpaneloutfitedit.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp
index 35582d2967..4a755a6e93 100644
--- a/indra/newview/llpaneloutfitedit.cpp
+++ b/indra/newview/llpaneloutfitedit.cpp
@@ -699,8 +699,12 @@ void LLPanelOutfitEdit::onFolderViewFilterCommitted(LLUICtrl* ctrl)
LLOpenFoldersWithSelection opener;
mInventoryItemsPanel->getRootFolder()->applyFunctorRecursively(opener);
mInventoryItemsPanel->getRootFolder()->scrollToShowSelection();
-
- LLInventoryModelBackgroundFetch::instance().start();
+
+ if (!LLInventoryModelBackgroundFetch::instance().inventoryFetchStarted())
+ {
+ llassert(false); // this should have been done on startup
+ LLInventoryModelBackgroundFetch::instance().start();
+ }
}
void LLPanelOutfitEdit::onListViewFilterCommitted(LLUICtrl* ctrl)
@@ -737,8 +741,12 @@ void LLPanelOutfitEdit::onSearchEdit(const std::string& string)
mInventoryItemsPanel->getRootFolder()->applyFunctorRecursively(opener);
mInventoryItemsPanel->getRootFolder()->scrollToShowSelection();
}
-
- LLInventoryModelBackgroundFetch::instance().start();
+
+ if (!LLInventoryModelBackgroundFetch::instance().inventoryFetchStarted())
+ {
+ llassert(false); // this should have been done on startup
+ LLInventoryModelBackgroundFetch::instance().start();
+ }
if (mInventoryItemsPanel->getFilterSubString().empty() && mSearchString.empty())
{