diff options
Diffstat (limited to 'mail/thunderbird/files/patch-bug991253')
-rw-r--r-- | mail/thunderbird/files/patch-bug991253 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/thunderbird/files/patch-bug991253 b/mail/thunderbird/files/patch-bug991253 index 32241fdfe270..06adabf4e833 100644 --- a/mail/thunderbird/files/patch-bug991253 +++ b/mail/thunderbird/files/patch-bug991253 @@ -1,14 +1,16 @@ --- mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp~ +++ mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp -@@ -400,6 +400,12 @@ mozHunspell::LoadDictionaryList() +@@ -400,6 +400,14 @@ mozHunspell::LoadDictionaryList(bool aNo } } + // load system hunspell dictionaries -+ nsIFile* hunDir; ++ nsCOMPtr<nsIFile> hunDir; + NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"), -+ true, &hunDir); -+ LoadDictionariesFromDir(hunDir); ++ true, getter_AddRefs(hunDir)); ++ if (hunDir) { ++ LoadDictionariesFromDir(hunDir); ++ } + // find dictionaries from extensions requiring restart nsCOMPtr<nsISimpleEnumerator> dictDirs; |