diff options
| author | Cinders <cinder@cinderblocks.biz> | 2013-05-13 17:18:38 -0600 | 
|---|---|---|
| committer | Cinders <cinder@cinderblocks.biz> | 2013-05-13 17:18:38 -0600 | 
| commit | 38c1cd2d29fa48b1a28a6ba1d7ef49ae00c9a5e0 (patch) | |
| tree | d4cf3c806cb0c3f5414f291529e2024dcf65d7d9 | |
| parent | 1beb15c93b139e4494bb90cce30b1c67accb4b08 (diff) | |
STORM-1948 - Fix for Set home to here - screen_home.bmp not saved
| -rw-r--r-- | 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 d7f050a916..62a51b7c97 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -301,6 +301,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 3c0d6189ac..6fa44ec23c 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5929,6 +5929,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; @@ -6004,14 +6013,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: "); | 
