SVN_SILENT: cleanups made while debugging

svn path=/trunk/KDE/kdebase/runtime/; revision=973263
This commit is contained in:
Aaron J. Seigo 2009-05-26 18:03:15 +00:00
parent 2617a0b82d
commit dbce6d687e

View File

@ -114,7 +114,7 @@ QString AppletInterface::activeConfig() const
void AppletInterface::setActiveConfig(const QString &name) void AppletInterface::setActiveConfig(const QString &name)
{ {
if (name == "main") { if (name == "main") {
m_currentConfig = QString(); m_currentConfig.clear();
return; return;
} }
@ -148,7 +148,9 @@ void AppletInterface::writeConfig(const QString &entry, const QVariant &value)
KConfigSkeletonItem *item = config->findItemByName(entry); KConfigSkeletonItem *item = config->findItemByName(entry);
if (item) { if (item) {
item->setProperty(value); item->setProperty(value);
config->blockSignals(true);
config->writeConfig(); config->writeConfig();
config->blockSignals(false);
m_appletScriptEngine->configNeedsSaving(); m_appletScriptEngine->configNeedsSaving();
} }
} }
@ -168,6 +170,7 @@ QScriptValue AppletInterface::readConfig(const QString &entry) const
if (config) { if (config) {
result = config->property(entry); result = config->property(entry);
} }
return m_appletScriptEngine->variantToScriptValue(result); return m_appletScriptEngine->variantToScriptValue(result);
} }