diff options
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 31 | 
1 files changed, 10 insertions, 21 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index b8404ec249..bae7518e66 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -66,6 +66,7 @@  #include "llchatentry.h"  #include "indra_constants.h"  #include "llassetstorage.h" +#include "lldate.h"  #include "llerrorcontrol.h"  #include "llfontgl.h"  #include "llmousehandler.h" @@ -79,14 +80,12 @@  #include "message.h"  #include "object_flags.h"  #include "lltimer.h" -#include "llviewermenu.h"  #include "lltooltip.h"  #include "llmediaentry.h"  #include "llurldispatcher.h"  #include "raytrace.h"  // newview includes -#include "llagent.h"  #include "llbox.h"  #include "llchicletbar.h"  #include "llconsole.h" @@ -118,7 +117,6 @@  #include "llfontfreetype.h"  #include "llgesturemgr.h"  #include "llglheaders.h" -#include "lltooltip.h"  #include "llhudmanager.h"  #include "llhudobject.h"  #include "llhudview.h" @@ -133,7 +131,6 @@  #include "llmorphview.h"  #include "llmoveview.h"  #include "llnavigationbar.h" -#include "llnotificationhandler.h"  #include "llpaneltopinfobar.h"  #include "llpopupview.h"  #include "llpreviewtexture.h" @@ -166,17 +163,13 @@  #include "lltoolselectland.h"  #include "lltrans.h"  #include "lluictrlfactory.h" -#include "llurldispatcher.h"        // SLURL from other app instance  #include "llversioninfo.h"  #include "llvieweraudio.h" -#include "llviewercamera.h"  #include "llviewergesture.h"  #include "llviewertexturelist.h"  #include "llviewerinventory.h" -#include "llviewerinput.h"  #include "llviewermedia.h"  #include "llviewermediafocus.h" -#include "llviewermenu.h"  #include "llviewermessage.h"  #include "llviewerobjectlist.h"  #include "llviewerparcelmgr.h" @@ -210,7 +203,6 @@  #include "llwindowlistener.h"  #include "llviewerwindowlistener.h" -#include "llpaneltopinfobar.h"  #include "llcleanup.h"  #if LL_WINDOWS @@ -4806,26 +4798,23 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save      }      // Look for an unused file name -    bool is_snapshot_name_loc_set = isSnapshotLocSet(); +    auto is_snapshot_name_loc_set = isSnapshotLocSet();      std::string filepath; -    S32 i = 1; -    S32 err = 0; -    std::string extension("." + image->getExtension()); +    auto i = 1; +    auto err = 0; +    auto extension("." + image->getExtension()); +    auto now = LLDate::now();      do      {          filepath = sSnapshotDir;          filepath += gDirUtilp->getDirDelimiter();          filepath += sSnapshotBaseName; - -        if (is_snapshot_name_loc_set) -        { -            filepath += llformat("_%.3d",i); -        } - +        filepath += now.toLocalDateString("_%Y-%m-%d_%H%M%S"); +        filepath += llformat("%.2d", i);          filepath += extension;          llstat stat_info; -        err = LLFile::stat( filepath, &stat_info ); +        err = LLFile::stat(filepath, &stat_info);          i++;      }      while( -1 != err  // Search until the file is not found (i.e., stat() gives an error). @@ -6178,7 +6167,7 @@ void LLPickInfo::fetchResults()              mObjectOffset = gAgentCamera.calcFocusOffset(objectp, v_intersection, mPickPt.mX, mPickPt.mY);              mObjectID = objectp->mID;              mObjectFace = (te_offset == NO_FACE) ? -1 : (S32)te_offset; - +            mPickHUD = objectp->isHUDAttachment();              mPosGlobal = gAgent.getPosGlobalFromAgent(v_intersection);  | 
