diff options
| -rwxr-xr-x | doc/contributions.txt | 1 | ||||
| -rwxr-xr-x | indra/newview/llviewermessage.cpp | 17 | 
2 files changed, 10 insertions, 8 deletions
| diff --git a/doc/contributions.txt b/doc/contributions.txt index 4c1fe1c077..113fd659e3 100755 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -302,6 +302,7 @@ Ciaran Laval  Cinder Roxley      BUG-2326      STORM-1703 +	STORM-1948  Clara Young  Coaldust Numbers      VWR-1095 diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index ace16396db..c7901f0bd8 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5937,6 +5937,15 @@ bool attempt_standard_notification(LLMessageSystem* msgsystem)  				return true;  			}  		} +		// HACK -- handle callbacks for specific alerts. +		if( notificationID == "HomePositionSet" ) +		{ +			// save the home location image to disk +			std::string snap_filename = gDirUtilp->getLindenUserDir(); +			snap_filename += gDirUtilp->getDirDelimiter(); +			snap_filename += SCREEN_HOME_FILENAME; +			gViewerWindow->saveSnapshot(snap_filename, gViewerWindow->getWindowWidthRaw(), gViewerWindow->getWindowHeightRaw(), FALSE, FALSE); +		}  		LLNotificationsUtil::add(notificationID, llsdBlock);  		return true; @@ -6012,14 +6021,6 @@ void process_alert_core(const std::string& message, BOOL modal)  	{  		LLViewerStats::getInstance()->incStat(LLViewerStats::ST_KILLED_COUNT);  	} -	else if( message == "Home position set." ) -	{ -		// save the home location image to disk -		std::string snap_filename = gDirUtilp->getLindenUserDir(); -		snap_filename += gDirUtilp->getDirDelimiter(); -		snap_filename += SCREEN_HOME_FILENAME; -		gViewerWindow->saveSnapshot(snap_filename, gViewerWindow->getWindowWidthRaw(), gViewerWindow->getWindowHeightRaw(), FALSE, FALSE); -	}  	const std::string ALERT_PREFIX("ALERT: ");  	const std::string NOTIFY_PREFIX("NOTIFY: "); | 
