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
This commit is contained in:
timeless%mozdev.org 2003-11-11 18:39:02 +00:00
Родитель 339f3e4e20
Коммит ec947f1f25
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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