diff options
author | andreykproductengine <akleshchev@productengine.com> | 2016-05-18 19:29:31 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2016-05-18 19:29:31 +0300 |
commit | efa716b5fcaa0f0faa4003e072747898a223e983 (patch) | |
tree | d2febedf61a98fc08535c3ad8f59137ec244aec1 /indra/llui/llurlaction.cpp | |
parent | 9ffc67ef8498823db2dc386ebdd0812fe4f54cb8 (diff) |
MAINT-2129 "Block" button doesn't become disabled
Diffstat (limited to 'indra/llui/llurlaction.cpp')
-rw-r--r-- | indra/llui/llurlaction.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp index 56977c597b..84ea770a8d 100644 --- a/indra/llui/llurlaction.cpp +++ b/indra/llui/llurlaction.cpp @@ -231,3 +231,13 @@ void LLUrlAction::blockObject(std::string url) executeSLURL("secondlife:///app/agent/" + object_id + "/block/" + LLURI::escape(object_name)); } } + +void LLUrlAction::unblockObject(std::string url) +{ + std::string object_id = getObjectId(url); + std::string object_name = getObjectName(url); + if (LLUUID::validate(object_id)) + { + executeSLURL("secondlife:///app/agent/" + object_id + "/unblock/" + object_name); + } +} |