if our name changes, then save it.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775276
This commit is contained in:
Aaron J. Seigo 2008-02-15 10:47:56 +00:00
parent cf89bd58d1
commit c1d3f89a8b

View File

@ -179,6 +179,12 @@ void Theme::setThemeName(const QString &themeName)
d->colors = KSharedConfig::openConfig(colorsFile);
}
KConfigGroup cg = d->config();
if (cg.readEntry("name", Private::defaultTheme) != d->themeName) {
cg.writeEntry("name", d->themeName);
cg.config()->sync();
}
emit changed();
}