Catching up with Lindies part 1

This commit is contained in:
Siana Gearz
2012-03-25 04:36:17 +02:00
parent 2e5ea4f5a7
commit 459751f206
9 changed files with 17 additions and 52 deletions

View File

@@ -5785,6 +5785,16 @@ bool script_question_cb(const LLSD& notification, const LLSD& response)
S32 orig = notification["payload"]["questions"].asInteger();
S32 new_questions = orig;
if (response["Details"])
{
// respawn notification...
LLNotificationsUtil::add(notification["name"], notification["substitutions"], notification["payload"]);
// ...with description on top
LLNotificationsUtil::add("DebitPermissionDetails");
return false;
}
// check whether permissions were granted or denied
BOOL allowed = TRUE;
// the "yes/accept" button is the first button in the template, making it button 0
@@ -5841,14 +5851,6 @@ bool script_question_cb(const LLSD& notification, const LLSD& response)
gNotifyBoxView->purgeMessagesMatching(OfferMatcher(item_id));
}
if (response["Details"])
{
// respawn notification...
LLNotifications::instance().add(notification["name"], notification["substitutions"], notification["payload"]);
// ...with description on top
LLNotificationsUtil::add("DebitPermissionDetails");
}
return false;
}
static LLNotificationFunctorRegistration script_question_cb_reg_1("ScriptQuestion", script_question_cb);