From kde-commits Sun May 31 23:27:14 2009 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Sun, 31 May 2009 23:27:14 +0000 To: kde-commits Subject: KDE/kdebase/workspace/libs/taskmanager Message-Id: <1243812434.474699.19657.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124386172727525 SVN commit 976121 by aseigo: watch klaunchrc and re-read the values when it changes BUG:189715 M +9 -0 taskmanager.cpp --- trunk/KDE/kdebase/workspace/libs/taskmanager/taskmanager.cpp #976120:976121 @@ -33,8 +33,10 @@ #include #include #include +#include #include #include +#include #ifdef Q_WS_X11 #include @@ -102,6 +104,13 @@ // set active window WId win = KWindowSystem::activeWindow(); activeWindowChanged(win); + + KDirWatch *watcher = new KDirWatch(this); + watcher->addFile(KGlobal::dirs()->locateLocal("config", "klaunchrc")); + connect(watcher, SIGNAL(dirty(const QString&)), this, SLOT(configureStartup())); + connect(watcher, SIGNAL(created(const QString&)), this, SLOT(configureStartup())); + connect(watcher, SIGNAL(deleted(const QString&)), this, SLOT(configureStartup())); + configureStartup(); }