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


git-svn-id: svn://10.0.0.236/trunk@149155 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2003-11-11 18:39:02 +00:00
parent 945f19e40d
commit 5ea7af8bf4

View File

@@ -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.