aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRael Gugelmin Cunha <rael.gc@gmail.com>2015-09-29 06:25:33 -0300
committerRael Gugelmin Cunha <rael.gc@gmail.com>2015-09-29 06:25:33 -0300
commit467f1ee9bf3ec2df34feba51c350cc21cbe54873 (patch)
tree370ede211448a85c65a140266d306620e37ff735
parent5254043fe8d717f5a154689281cef17b5cdc6d1b (diff)
parent251d937f60aef57f8fa9f01594e91add6ec4d791 (diff)
downloadscudcloud-467f1ee9bf3ec2df34feba51c350cc21cbe54873.zip
scudcloud-467f1ee9bf3ec2df34feba51c350cc21cbe54873.tar.gz
scudcloud-467f1ee9bf3ec2df34feba51c350cc21cbe54873.tar.bz2
Merge pull request #241 from christofdamian/fix-dictionary-path-check
Fix dictionary path check
-rw-r--r--scudcloud-1.0/lib/speller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scudcloud-1.0/lib/speller.py b/scudcloud-1.0/lib/speller.py
index 6fd34df..11f365e 100644
--- a/scudcloud-1.0/lib/speller.py
+++ b/scudcloud-1.0/lib/speller.py
@@ -24,7 +24,7 @@ class Speller(QObject):
return
dictionaryPath = self.getDictionaryPath()
language = self.parseLanguage(dictionaryPath)
- if dictionaryPath is None or language is None:
+ if not dictionaryPath or language is None:
return
self.hunspell = hunspell.HunSpell(dictionaryPath + ".dic", dictionaryPath + ".aff")
self.initialized = True