From c1d3f89a8b2ec9d2d7aed4fa8e4c1a300dba5b16 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 15 Feb 2008 10:47:56 +0000 Subject: [PATCH] if our name changes, then save it. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775276 --- theme.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/theme.cpp b/theme.cpp index 44cf25098..4b871a54d 100644 --- a/theme.cpp +++ b/theme.cpp @@ -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(); }