diff options
| author | 2018-02-19 22:25:52 -0500 | |
|---|---|---|
| committer | 2018-02-19 22:25:52 -0500 | |
| commit | 9d4c5a651215fc00520302ef9a6c5a38507cca16 (patch) | |
| tree | 1e81d8bc3d407ad1522aa1a5cad168abadfedf38 /src/modules/spellchecker/libkvispellchecker.cpp | |
| parent | Add option to prioritize nick tab completion by last action time. Implements ... (diff) | |
| download | KVIrc-9d4c5a651215fc00520302ef9a6c5a38507cca16.tar.gz KVIrc-9d4c5a651215fc00520302ef9a6c5a38507cca16.tar.bz2 KVIrc-9d4c5a651215fc00520302ef9a6c5a38507cca16.zip | |
spellchecker: Stop trying to load invalid dictionaries.
Diffstat (limited to 'src/modules/spellchecker/libkvispellchecker.cpp')
| -rw-r--r-- | src/modules/spellchecker/libkvispellchecker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp index 8d1f218e8..b02561bca 100644 --- a/src/modules/spellchecker/libkvispellchecker.cpp +++ b/src/modules/spellchecker/libkvispellchecker.cpp @@ -158,6 +158,9 @@ static void spellchecker_reload_dicts() const QStringList & wantedDictionaries = KVI_OPTION_STRINGLIST(KviOption_stringlistSpellCheckerDictionaries); foreach(QString szLang, wantedDictionaries) { + if(szLang.isEmpty()) + continue; + EnchantDict * pDict = enchant_broker_request_dict(g_pEnchantBroker, szLang.toUtf8().data()); if(pDict) { |
