when changing the use globals setting, reset the state of the theme to comply

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820932
This commit is contained in:
Aaron J. Seigo 2008-06-15 20:09:27 +00:00
parent b5855d7b20
commit d03c0f5eb6

View File

@ -315,7 +315,14 @@ bool Theme::windowTranslucencyEnabled() const
void Theme::setUseGlobalSettings(bool useGlobal)
{
if (d->useGlobal == useGlobal) {
return;
}
d->useGlobal = useGlobal;
d->cfg = KConfigGroup();
d->themeName = QString();
settingsChanged();
}
bool Theme::useGlobalSettings() const