summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-06-20 16:28:53 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-06-20 16:28:53 +0300
commit112d3de66f21901c5d0d8b74ed5e10e1dcf34f4f (patch)
tree28a673e17502cba4bc47c2b40cf4dee747ef307a /indra/newview
parent5f8d54d0928ce61eae16f21fc253c8f31acb5de5 (diff)
MAINT-8764 FIXED Crash in LLViewerWindow::saveImageNumbered()
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerwindow.cpp9
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml5
2 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 846b902260..cef19c9c2d 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -4436,6 +4436,15 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save
#else
boost::filesystem::path b_path(lastSnapshotDir);
#endif
+ if (!boost::filesystem::is_directory(b_path))
+ {
+ LLSD args;
+ args["PATH"] = lastSnapshotDir;
+ LLNotificationsUtil::add("SnapshotToLocalDirNotExist", args);
+ resetSnapshotLoc();
+ failure_cb();
+ return;
+ }
boost::filesystem::space_info b_space = boost::filesystem::space(b_path);
if (b_space.free < image->getDataSize())
{
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index 7f9dc0c41f..8822e9dbc5 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -8260,6 +8260,11 @@ Failed to save appearance to XML.
Failed to save snapshot to [PATH]: Disk is full. [NEED_MEMORY]KB is required but only [FREE_MEMORY]KB is free.
</notification>
+ <notification icon="notifytip.tga"
+ name="SnapshotToLocalDirNotExist" type="notifytip">
+Failed to save snapshot to [PATH]: Directory does not exist.
+ </notification>
+
<notification
icon="notifytip.tga"
name="PresetNotSaved"