diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-09-12 15:01:56 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-09-12 15:01:56 +0300 |
commit | 87f496cf7c1c71510e4cb995661f8da5691746da (patch) | |
tree | fe9ba0551eebd3e217d65e57f5d688b6f483b523 /indra/newview/lllocalbitmaps.cpp | |
parent | 7b54f077b48740c69559c0a2089b6133ed8eb605 (diff) |
SL-20173 show notification when file is empty
Diffstat (limited to 'indra/newview/lllocalbitmaps.cpp')
-rw-r--r-- | indra/newview/lllocalbitmaps.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp index 72ef365a6d..f435506cff 100644 --- a/indra/newview/lllocalbitmaps.cpp +++ b/indra/newview/lllocalbitmaps.cpp @@ -984,7 +984,11 @@ bool LLLocalBitmapMgr::checkTextureDimensions(std::string filename) { LLSD args; args["NAME"] = gDirUtilp->getBaseFileName(filename); - LLNotificationsUtil::add(image_info.getWarningName(), args); + if (!image_info.getWarningName().empty()) + { + args["REASON"] = LLTrans::getString(image_info.getWarningName()); + } + LLNotificationsUtil::add("CannotUploadTexture", args); return false; } @@ -1000,6 +1004,7 @@ bool LLLocalBitmapMgr::checkTextureDimensions(std::string filename) LLSD notif_args; notif_args["REASON"] = mImageLoadError; + notif_args["NAME"] = gDirUtilp->getBaseFileName(filename); LLNotificationsUtil::add("CannotUploadTexture", notif_args); return false; |