Bug 191580 typeaheadfind accesses sound device on Linux when it's set to just "beep"

r=biesi sr=bryner
This commit is contained in:
timeless%mozdev.org 2004-02-02 23:12:00 +00:00
Родитель bef3337eff
Коммит 19c6447c6c
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -614,7 +614,7 @@ nsTypeAheadFind::KeyPress(nsIDOMEvent* aEvent)
// by waiting for the first keystroke, we still get the startup time benefits.
mIsSoundInitialized = PR_TRUE;
mSoundInterface = do_CreateInstance("@mozilla.org/sound;1");
if (mSoundInterface) {
if (mSoundInterface && !mNotFoundSoundURL.Equals(NS_LITERAL_CSTRING("beep"))) {
mSoundInterface->Init();
}
}