diff options
author | Rider Linden <rider@lindenlab.com> | 2018-06-01 16:24:36 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-06-01 16:24:36 -0700 |
commit | 2a613d7363c4e91a7258d4f0ea3971db1569e788 (patch) | |
tree | f1882a8e0920bbaf2778d6fcab36df6edc3c3ab7 /indra/newview/llfloatereditextdaycycle.cpp | |
parent | bd84cbfa11fbe2b3aa5ceba5978841310488b8e4 (diff) |
Rework preset loading and context menu from inventory.
Diffstat (limited to 'indra/newview/llfloatereditextdaycycle.cpp')
-rw-r--r-- | indra/newview/llfloatereditextdaycycle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp index 706dd99fc9..4703a1ec16 100644 --- a/indra/newview/llfloatereditextdaycycle.cpp +++ b/indra/newview/llfloatereditextdaycycle.cpp @@ -795,6 +795,14 @@ void LLFloaterEditExtDayCycle::loadInventoryItem(const LLUUID &inventoryId) void LLFloaterEditExtDayCycle::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; + } mEditDay = std::dynamic_pointer_cast<LLSettingsDay>(settings); updateEditEnvironment(); syncronizeTabs(); |