'Slot to set a setting from qute://settings.'

@pyqtSlot(str, str, str)
def set(self, sectname, optname, value):

    if (((sectname, optname) == ('content', 'allow-javascript')) and (value == 'false')):
        message.error('Refusing    to    disable    javascript    via    qute://settings    as    it    needs    javascript    support.')
        return
    try:
        objreg.get('config').set('conf', sectname, optname, value)
    except (configexc.Error, configparser.Error) as e:
        message.error(str(e))
