diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 6809d8615c..b7b48c95b6 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -21480,5 +21480,16 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
5
+ FSFlashOnScriptDialog
+
diff --git a/indra/newview/llscriptfloater.cpp b/indra/newview/llscriptfloater.cpp
index 007ddc354f..4f9f4405da 100755
--- a/indra/newview/llscriptfloater.cpp
+++ b/indra/newview/llscriptfloater.cpp
@@ -43,6 +43,7 @@
#include "llviewerwindow.h"
#include "llfloaterimsession.h"
+#include "llwindow.h" // flashIcon()
#include "lltoolbarview.h" // script dialogs position
// Dialog Stacking browser
#include "dialogstack.h"
@@ -571,6 +572,14 @@ void LLScriptFloaterManager::onAddNotification(const LLUUID& notification_id)
data["new_message"] = set_new_message;
data["unread"] = 1; // each object has got only one floater
mNewObjectSignal(data);
+
+ // Flash or bounce the app icon on new script dialog
+ LLWindow* viewer_window = gViewerWindow->getWindow();
+ if (viewer_window && gSavedSettings.getBOOL("FSFlashOnScriptDialog"))
+ {
+ viewer_window->flashIcon(5.f);
+ }
+ //
toggleScriptFloater(notification_id, set_new_message);
}
diff --git a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml
index f2554038f2..5e0ae8e2a6 100755
--- a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml
+++ b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml
@@ -261,6 +261,15 @@
name="FSReportCollisionMessagesChannel"
width="90"
tool_tip="The channel used for reporting collision messages to scripts [Default: -25000]"/>
+