summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterfixedenvironment.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-06-01 16:24:36 -0700
committerRider Linden <rider@lindenlab.com>2018-06-01 16:24:36 -0700
commit2a613d7363c4e91a7258d4f0ea3971db1569e788 (patch)
treef1882a8e0920bbaf2778d6fcab36df6edc3c3ab7 /indra/newview/llfloaterfixedenvironment.cpp
parentbd84cbfa11fbe2b3aa5ceba5978841310488b8e4 (diff)
Rework preset loading and context menu from inventory.
Diffstat (limited to 'indra/newview/llfloaterfixedenvironment.cpp')
-rw-r--r--indra/newview/llfloaterfixedenvironment.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterfixedenvironment.cpp b/indra/newview/llfloaterfixedenvironment.cpp
index d5fc34a04b..6c1080294d 100644
--- a/indra/newview/llfloaterfixedenvironment.cpp
+++ b/indra/newview/llfloaterfixedenvironment.cpp
@@ -212,6 +212,15 @@ void LLFloaterFixedEnvironment::loadInventoryItem(const LLUUID &inventoryId)
void LLFloaterFixedEnvironment::onAssetLoaded(LLUUID asset_id, LLSettingsBase::ptr_t settings, S32 status)
{
+ if (!settings || status)
+ {
+ LLSD args;
+ args["DESC"] = (mInventoryItem) ? mInventoryItem->getName() : "Unknown";
+ LLNotificationsUtil::add("FailedToFindSettings", args);
+ closeFloater();
+ return;
+ }
+
mSettings = settings;
updateEditEnvironment();
syncronizeTabs();