[Notifications] Make cpp agree with xml to fix Restore In World confirmation on no-copy inventory items.

Thanks Torric Rodas for reporting.
This commit is contained in:
Router Gray
2019-10-24 17:25:54 -05:00
committed by Liru Færs
parent a5aeac312c
commit 68481b8921

View File

@@ -1738,7 +1738,7 @@ void LLItemBridge::restoreToWorld()
//Similar functionality to the drag and drop rez logic
bool no_copy = !itemp->getPermissions().allowCopyBy(gAgentID);
if (no_copy && gHippoGridManager->getCurrentGrid()->isSecondLife())
LLNotificationsUtil::add("RestoreToWorldConfirm", LLSD(), LLSD(), boost::bind(restore_to_world, itemp, true, !boost::bind(LLNotification::getSelectedOption, _1, _2)));
LLNotificationsUtil::add("RezRestoreToWorld", LLSD(), LLSD(), boost::bind(restore_to_world, itemp, true, !boost::bind(LLNotification::getSelectedOption, _1, _2)));
else
restore_to_world(itemp, no_copy);
}