diff options
| author | Eugene Mutavchi <emutavchi@productengine.com> | 2009-12-11 20:36:32 +0200 | 
|---|---|---|
| committer | Eugene Mutavchi <emutavchi@productengine.com> | 2009-12-11 20:36:32 +0200 | 
| commit | 7863d7d412ecd4dbbb7a27978493e85f446250fb (patch) | |
| tree | 2ee244320d0d1af71419864cfc17c526065f8fdd /indra/newview | |
| parent | 58f17bb735dce95031619ef20c2d5d35ae59896d (diff) | |
Related to normal sub-task EXT-2478: Implemened chiclet + chiclet window should spawn only for offers from objects. Offers from persons should be shown as toasts
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 20 | 
1 files changed, 9 insertions, 11 deletions
| diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 8fe18c56c9..d1f1d781ee 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1480,6 +1480,8 @@ void inventory_offer_handler(LLOfferInfo* info)  		// Note: sets inventory_task_offer_callback as the callback  		p.substitutions(args).payload(payload).functor.function(boost::bind(&LLOfferInfo::inventory_task_offer_callback, info, _1, _2));  		p.name = name_found ? "ObjectGiveItem" : "ObjectGiveItemUnknownUser"; +		// Pop up inv offer chiclet and let the user accept (keep), or reject (and silently delete) the inventory. +		LLNotifications::instance().add(p);  	}  	else // Agent -> Agent Inventory Offer  	{ @@ -1503,18 +1505,14 @@ void inventory_offer_handler(LLOfferInfo* info)  		// In viewer 2 we're now auto receiving inventory offers and messaging as such (not sending reject messages).  		info->send_auto_receive_response(); -	} - -	// Pop up inv offer notification and let the user accept (keep), or reject (and silently delete) the inventory. -	LLNotifications::instance().add(p); -	// TODO(EM): Recheck this after we will know how script notifications should look like. -	// Inform user that there is a script floater via toast system -	// { -	// 	payload["give_inventory_notification"] = TRUE; -	// 	LLNotificationPtr notification = LLNotifications::instance().add(p.payload(payload));  -	// 	LLScriptFloaterManager::getInstance()->setNotificationToastId(object_id, notification->getID()); -	// } +		// Inform user that there is a script floater via toast system +		{ +			payload["give_inventory_notification"] = TRUE; +			LLNotificationPtr notification = LLNotifications::instance().add(p.payload(payload));  +			LLScriptFloaterManager::getInstance()->setNotificationToastId(object_id, notification->getID()); +		} +	}  }  bool lure_callback(const LLSD& notification, const LLSD& response) | 
