From c7bbfea29e9b1cce10e4ed342d24b49597fe5ce3 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 18 Sep 2008 04:40:28 +0000 Subject: [PATCH] actually open the temp file so we don't write into the app's rc file svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862102 --- service.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service.cpp b/service.cpp index f0af0624a..a119c86c4 100644 --- a/service.cpp +++ b/service.cpp @@ -127,6 +127,8 @@ KConfigGroup Service::operationDescription(const QString &operationName) d->config->writeConfig(); KConfigGroup params(d->config->config(), operationName); + //kDebug() << "operation" << operationName << "requested, has keys" << params.keyList() << "from" + // << d->config->config()->name(); return params; } @@ -257,8 +259,11 @@ void Service::setOperationsScheme(QIODevice *xml) //FIXME: make KSharedConfig and KConfigSkeleton not braindamaged in 4.2 and then get rid of the // temp file object here d->tempFile = new KTemporaryFile; + d->tempFile->open(); + KSharedConfigPtr c = KSharedConfig::openConfig(d->tempFile->fileName(), KConfig::NoGlobals); d->config = new ConfigXml(c, xml, this); + emit operationsChanged(); {