aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/spellchecker/libkvispellchecker.cpp
diff options
context:
space:
mode:
authorGravatar IceN9ne2018-02-19 22:25:52 -0500
committerGravatar IceN9ne2018-02-19 22:25:52 -0500
commit9d4c5a651215fc00520302ef9a6c5a38507cca16 (patch)
tree1e81d8bc3d407ad1522aa1a5cad168abadfedf38 /src/modules/spellchecker/libkvispellchecker.cpp
parentAdd option to prioritize nick tab completion by last action time. Implements ... (diff)
downloadKVIrc-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.cpp3
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)
{