summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermarketplacelistings.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-05-16 17:12:22 -0700
committerMerov Linden <merov@lindenlab.com>2014-05-16 17:12:22 -0700
commit23acc30e2709dac1aa54eecda5c1bc6b2b226b5b (patch)
treea9806926b108e9b3da4b82b9f04d6e89cccdd4d5 /indra/newview/llfloatermarketplacelistings.cpp
parent10591cce8e36e4c27c4a68c68c0502eaa24d8964 (diff)
DD-102 : Fix crash when emptying trash containing nested folders. Also avoid getting listings several times
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rwxr-xr-xindra/newview/llfloatermarketplacelistings.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp
index b1b397c77c..277bd5aaed 100755
--- a/indra/newview/llfloatermarketplacelistings.cpp
+++ b/indra/newview/llfloatermarketplacelistings.cpp
@@ -242,25 +242,15 @@ void LLFloaterMarketplaceListings::onOpen(const LLSD& key)
{
initializeMarketPlace();
}
- else
- {
- setup();
+ else
+ {
+ updateView();
}
-
- //
- // Update the floater view
- //
- updateView();
-
- //
- // Trigger fetch of the contents
- //
- fetchContents();
}
void LLFloaterMarketplaceListings::onFocusReceived()
{
- fetchContents();
+ updateView();
}
void LLFloaterMarketplaceListings::fetchContents()
@@ -484,7 +474,6 @@ void LLFloaterMarketplaceListings::onChanged()
LLViewerInventoryCategory* category = gInventory.getCategory(mRootFolderId);
if (mRootFolderId.notNull() && category)
{
- fetchContents();
updateView();
}
else