[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/taskmanager
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-05-31 23:27:14
Message-ID: 1243812434.474699.19657.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <KConfig>
#include <KConfigGroup>
#include <KDebug>
+#include <KDirWatch>
#include <KGlobal>
#include <KLocale>
+#include <KStandardDirs>
#ifdef Q_WS_X11
#include <QX11Info>
@@ -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();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic