summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastalertpanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lltoastalertpanel.cpp')
-rw-r--r--indra/newview/lltoastalertpanel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp
index 5d67015526..69c384835d 100644
--- a/indra/newview/lltoastalertpanel.cpp
+++ b/indra/newview/lltoastalertpanel.cpp
@@ -352,12 +352,14 @@ bool LLToastAlertPanel::setCheckBox( const std::string& check_title, const std::
void LLToastAlertPanel::setVisible( BOOL visible )
{
- LLToastPanel::setVisible( visible );
-
- if( visible )
+ // only make the "ding" sound if it's newly visible
+ if( visible && !LLToastPanel::getVisible() )
{
make_ui_sound("UISndAlert");
}
+
+ LLToastPanel::setVisible( visible );
+
}
LLToastAlertPanel::~LLToastAlertPanel()