From 425a19b1118523a3f72f73bcbe0fb7cc32bc0cc0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 3 Jul 2006 10:03:52 +0000 Subject: [PATCH] dbus-ify++ svn path=/trunk/KDE/kdebase/workspace/; revision=557447 --- main.cpp | 2 +- utils.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 256bdce244..7be352fd4f 100644 --- a/main.cpp +++ b/main.cpp @@ -280,7 +280,7 @@ KDE_EXPORT int kdemain( int argc, char * argv[] ) else appname.sprintf("kwin-screen-%d", KWinInternal::screen_number); - QDBus::sessionBus().busService()->requestName( appname, QDBusBusService::DoNotQueueName ); + QDBus::sessionBus().interface()->registerService( appname, QDBusConnectionInterface::DontQueueService ); return a.exec(); } diff --git a/utils.cpp b/utils.cpp index 47c8b8f7f7..3cb06ee5e6 100644 --- a/utils.cpp +++ b/utils.cpp @@ -24,6 +24,7 @@ License. See the file "COPYING" for the exact licensing terms. #include #include #include +#include #include #include