From 733e86c1fc08bc1e8056b4fc1d5fd7a387fcc4c9 Mon Sep 17 00:00:00 2001 From: Leyla Farazha Date: Mon, 17 Aug 2009 19:08:56 +0000 Subject: EXT-519 Moving the cursor over a modal dialog dings every time EXT-471 Usernames do'g appear in the communicate window reviewed by steve --- indra/newview/lltoastalertpanel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'indra/newview/lltoastalertpanel.cpp') 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() -- cgit v1.2.3