SVN_SILENT: cleanups made while debugging
svn path=/trunk/KDE/kdebase/runtime/; revision=973263
This commit is contained in:
parent
2617a0b82d
commit
dbce6d687e
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user