[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/utils/rsibreak/src
From:       Tom Albers <toma () kde ! org>
Date:       2009-07-13 20:59:41
Message-ID: 1247518781.490462.20785.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 996112 by toma:

Lets see if we can debug why this is not working on every computer..


 M  +13 -6     plasmaeffect.cpp  


--- trunk/extragear/utils/rsibreak/src/plasmaeffect.cpp #996111:996112
@@ -31,28 +31,35 @@
 void PlasmaEffect::activate()
 {
 #if KDE_IS_VERSION(4,3,60)
-    kDebug() << "New style";
     QDBusInterface dbus( "org.kde.plasma-desktop", "/App" );
-    dbus.call( QLatin1String( "showDashboard" ), true );
+    QDBusMessage reply = dbus.call( QLatin1String( "showDashboard" ), true );
 #else
     kDebug() << "Old style";
     QDBusInterface dbus( "org.kde.plasma-desktop", "/App" );
-    dbus.call( QLatin1String( "toggleDashboard" ) );
+    QDBusMessage reply = dbus.call( QLatin1String( "toggleDashboard" ) );
 #endif
     BreakBase::activate();
+
+    if ( reply.type() == QDBusMessage::ErrorMessage ) {
+        kDebug() << reply.errorMessage() << reply.errorName();
+    }
 }
 
 void PlasmaEffect::deactivate()
 {
 #if KDE_IS_VERSION(4,3,60)
-    kDebug() << "New style";
     QDBusInterface dbus( "org.kde.plasma-desktop", "/App" );
-    dbus.call( QLatin1String( "showDashboard" ), false );
+    QDBusMessage reply = dbus.call( QLatin1String( "showDashboard" ), false );
 #else
     kDebug() << "Old style";
     QDBusInterface dbus( "org.kde.plasma-desktop", "/App" );
-    dbus.call( QLatin1String( "toggleDashboard" ) );
+    QDBusMessage reply =dbus.call( QLatin1String( "toggleDashboard" ) );
 #endif
+
+    if ( reply.type() == QDBusMessage::ErrorMessage ) {
+        kDebug() << reply.errorMessage() << reply.errorName();
+    }
+
     BreakBase::deactivate();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic