Use get_opt in NewConfigManager.set

This commit is contained in:
Florian Bruhin 2017-06-19 13:00:34 +02:00
parent 5081e4f201
commit 44e4816cbb

View File

@ -257,10 +257,7 @@ class NewConfigManager(QObject):
def set(self, name, value):
# FIXME:conf stub
try:
opt = self.options[name]
except KeyError:
raise configexc.NoOptionError(name)
opt = self.get_opt(name)
self._values[name] = opt.typ.from_str(value)
self.changed.emit(name)
log.config.debug("Config option changed: {} = {}".format(name, value))