From ec947f1f250b768bedf0adb7ad243f6378637a28 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Tue, 11 Nov 2003 18:39:02 +0000 Subject: [PATCH] Bug 189307 typeahead initializes sound when it's uninitialized instead of if it's unitialized and there's a sound to play r=caillon sr=roc --- extensions/typeaheadfind/src/nsTypeAheadFind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/typeaheadfind/src/nsTypeAheadFind.cpp b/extensions/typeaheadfind/src/nsTypeAheadFind.cpp index 80149c2d433..88d3e4ed01b 100644 --- a/extensions/typeaheadfind/src/nsTypeAheadFind.cpp +++ b/extensions/typeaheadfind/src/nsTypeAheadFind.cpp @@ -610,7 +610,7 @@ nsTypeAheadFind::KeyPress(nsIDOMEvent* aEvent) return NS_OK; } - if (!mIsSoundInitialized) { + if (!mIsSoundInitialized && !mNotFoundSoundURL.IsEmpty()) { // This makes sure system sound library is loaded so that // there's no lag before the first sound is played // by waiting for the first keystroke, we still get the startup time benefits.