diff options
Diffstat (limited to 'indra/newview/llpreviewtexture.cpp')
-rw-r--r-- | indra/newview/llpreviewtexture.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 79b8313352..fefa6d40d7 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -349,15 +349,15 @@ void LLPreviewTexture::onFileLoadedForSave(BOOL success, LLPointer<LLImageTGA> image_tga = new LLImageTGA; if( !image_tga->encode( src ) ) { - LLStringUtil::format_map_t args; - args["[FILE]"] = self->mSaveFileName; - gViewerWindow->alertXml("CannotEncodeFile", args); + LLSD args; + args["FILE"] = self->mSaveFileName; + LLNotifications::instance().add("CannotEncodeFile", args); } else if( !image_tga->save( self->mSaveFileName ) ) { - LLStringUtil::format_map_t args; - args["[FILE]"] = self->mSaveFileName; - gViewerWindow->alertXml("CannotWriteFile", args); + LLSD args; + args["FILE"] = self->mSaveFileName; + LLNotifications::instance().add("CannotWriteFile", args); } else { @@ -370,7 +370,7 @@ void LLPreviewTexture::onFileLoadedForSave(BOOL success, if( self && !success ) { - gViewerWindow->alertXml("CannotDownloadFile"); + LLNotifications::instance().add("CannotDownloadFile"); } } |