summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-02-02 00:10:52 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-03-02 23:44:54 +0200
commit46320516199807bff787182d0693a57d3475b767 (patch)
tree5892e3c26f8ffe6b0dcc032152da66df7f96b817
parenta09686bf547e3384ec3f409f20023c16c69e7e9c (diff)
SL-16755 Show alert that download is not supported instead of failing silently
-rw-r--r--indra/newview/llvovolume.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 77f756a123..4bfe521f1f 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -71,6 +71,8 @@
#include "llmediaentry.h"
#include "llmediadataclient.h"
#include "llmeshrepository.h"
+#include "llnotifications.h"
+#include "llnotificationsutil.h"
#include "llagent.h"
#include "llviewermediafocus.h"
#include "lldatapacker.h"
@@ -2960,6 +2962,10 @@ void LLVOVolume::mediaEvent(LLViewerMediaImpl *impl, LLPluginClassMedia* plugin,
}
}
break;
+
+ case LLViewerMediaObserver::MEDIA_EVENT_FILE_DOWNLOAD:
+ LLNotificationsUtil::add("MediaFileDownloadUnsupported");
+ break;
default:
break;