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(); }