summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindra/newview/llappviewer.cpp22
-rwxr-xr-xindra/newview/llsidepanelinventory.cpp2
2 files changed, 16 insertions, 8 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 2898d8ca31..e1d5153c16 100755
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -5374,13 +5374,21 @@ void LLAppViewer::idleExperienceCache()
{
LLViewerRegion* region = gAgent.getRegion();
if (!region) return;
-
- std::string lookup_url=region->getCapability("GetExperienceInfo");
- if(!lookup_url.empty() && *lookup_url.rbegin() != '/')
- {
- lookup_url += '/';
- }
-
+
+ std::string lookup_url;
+ if (region->capabilitiesReceived())
+ {
+ lookup_url = region->getCapability("GetExperienceInfo");
+ if (!lookup_url.empty() && *lookup_url.rbegin() != '/')
+ {
+ lookup_url += '/';
+ }
+ }
+ else
+ {
+ LL_WARNS_ONCE() << "GetExperienceInfo capability is not yet recieved" << LL_ENDL;
+ }
+
LLExperienceCache::setLookupURL(lookup_url);
LLExperienceCache::idle();
diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp
index 0e23e2ad10..6743a78dcb 100755
--- a/indra/newview/llsidepanelinventory.cpp
+++ b/indra/newview/llsidepanelinventory.cpp
@@ -452,7 +452,7 @@ void LLSidepanelInventory::onShareButtonClicked()
void LLSidepanelInventory::onShopButtonClicked()
{
- LLWeb::loadURLExternal(gSavedSettings.getString("MarketplaceURL"));
+ LLWeb::loadURL(gSavedSettings.getString("MarketplaceURL"));
}
void LLSidepanelInventory::performActionOnSelection(const std::string &action)