Fix cache invalidation for on_setting_changed.

This commit is contained in:
Florian Bruhin 2014-08-27 20:22:38 +02:00
parent 7f40a5789d
commit af10d1c857

View File

@ -411,10 +411,10 @@ class ConfigManager(QObject):
except KeyError:
raise NoOptionError(optname, sectname)
else:
self.get.cache_clear()
if sectname in ('colors', 'fonts'):
self.style_changed.emit(sectname, optname)
self.changed.emit(sectname, optname)
self.get.cache_clear()
@cmdutils.register(instance='config')
def save(self):