merge changes for STORM-1948
commit
836ad301dc
|
|
@ -302,6 +302,7 @@ Ciaran Laval
|
|||
Cinder Roxley
|
||||
BUG-2326
|
||||
STORM-1703
|
||||
STORM-1948
|
||||
Clara Young
|
||||
Coaldust Numbers
|
||||
VWR-1095
|
||||
|
|
|
|||
|
|
@ -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: ");
|
||||
|
|
|
|||
Loading…
Reference in New Issue