use the config defined in the constructor for runner settings as well

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864402
This commit is contained in:
Aaron J. Seigo 2008-09-24 18:13:21 +00:00
parent 7e975d764c
commit e2b8fa258a

View File

@ -223,7 +223,7 @@ public:
KService::List offers = KServiceTypeTrader::self()->query("Plasma/Runner");
bool loadAll = config.readEntry("loadAll", false);
KConfigGroup conf(KGlobal::config(), "Plugins");
KConfigGroup conf(&config, "Plugins");
foreach (const KService::Ptr &service, offers) {
//kDebug() << "Loading runner: " << service->name() << service->storageId();
@ -308,10 +308,11 @@ RunnerManager::RunnerManager(QObject *parent)
}
RunnerManager::RunnerManager(KConfigGroup &config, QObject *parent)
RunnerManager::RunnerManager(KConfigGroup &c, QObject *parent)
: QObject(parent),
d(new RunnerManagerPrivate(this))
{
KConfigGroup config(&config, "PlasmaRunnerManager");
d->loadConfiguration(config);
//ThreadWeaver::setDebugLevel(true, 4);
}