Output some kind of warning in case the writeConfig wasn't executed

It helps find what's going on when debugging and reduces magic.

CCMAIL: aseigo@kde.org
This commit is contained in:
Aleix Pol 2013-01-10 04:59:30 +01:00
parent 84aaa236e5
commit 0093962cff

View File

@ -198,7 +198,8 @@ void AppletInterface::writeConfig(const QString &entry, const QVariant &value)
config->blockSignals(false);
m_appletScriptEngine->configNeedsSaving();
}
}
} else
kWarning() << "Couldn't find a configuration entry";
}
QScriptValue AppletInterface::readConfig(const QString &entry) const