Fix old config access in hints

This commit is contained in:
Florian Bruhin 2017-06-16 17:00:05 +02:00
parent 3aa7f771c1
commit 471755d370

View File

@ -937,7 +937,7 @@ class WordHinter:
def ensure_initialized(self): def ensure_initialized(self):
"""Generate the used words if yet uninitialized.""" """Generate the used words if yet uninitialized."""
dictionary = config.get("hints", "dictionary") dictionary = config.val.hints.dictionary
if not self.words or self.dictionary != dictionary: if not self.words or self.dictionary != dictionary:
self.words.clear() self.words.clear()
self.dictionary = dictionary self.dictionary = dictionary