summaryrefslogtreecommitdiffstats
path: root/kcontrol/kicker/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/kicker/main.cpp')
-rw-r--r--kcontrol/kicker/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kcontrol/kicker/main.cpp b/kcontrol/kicker/main.cpp
index 4ef0f842f..021cfbdd9 100644
--- a/kcontrol/kicker/main.cpp
+++ b/kcontrol/kicker/main.cpp
@@ -132,6 +132,18 @@ void KickerConfig::init()
configFileWatch->startScan();
}
+void KickerConfig::restartKicker()
+{
+ // Tell kicker to restart
+ if (!kapp->dcopClient()->isAttached())
+ {
+ kapp->dcopClient()->attach();
+ }
+ QCString appname;
+ appname = "kicker";
+ kapp->dcopClient()->send(appname, appname, "restart", "");
+}
+
void KickerConfig::notifyKicker()
{
kdDebug() << "KickerConfig::notifyKicker()" << endl;