summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersnapshot.cpp
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-04-13 18:59:00 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-04-13 18:59:00 +0300
commiteec33adf34db3fe0c32600808458e4307ede1bf0 (patch)
tree10919302c8706f061e02c97864ed4dbd13aa4fca /indra/newview/llfloatersnapshot.cpp
parent2311d8c2b200574a0fb38c80222a0f09ce984f67 (diff)
MAINT-3286 FIXED Fix error message on snapshot save when user has no L$
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
-rwxr-xr-xindra/newview/llfloatersnapshot.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index afec981d56..b906671c7f 100755
--- a/indra/newview/llfloatersnapshot.cpp
+++ b/indra/newview/llfloatersnapshot.cpp
@@ -1418,6 +1418,20 @@ void LLFloaterSnapshot::postPanelSwitch()
}
// static
+void LLFloaterSnapshot::inventorySaveFailed()
+{
+ LLFloaterSnapshot* instance = findInstance();
+ if (!instance)
+ {
+ llassert(instance != NULL);
+ return;
+ }
+
+ instance->impl.updateControls(instance);
+ instance->impl.setStatus(Impl::STATUS_FINISHED, false, "inventory");
+}
+
+// static
LLPointer<LLImageFormatted> LLFloaterSnapshot::getImageData()
{
// FIXME: May not work for textures.