aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/kdenotify
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-15 11:46:30 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-15 11:46:30 +0000
commit545d52a2d4951596afac59e7ed064c1fc3b697a7 (patch)
tree36fe5f6c20890e30dd254bc36c66baa6b2ad5622 /src/plugins/General/kdenotify
parente2225dbc1cc75d32a94d336e6b42075cf8af1e11 (diff)
downloadqmmp-545d52a2d4951596afac59e7ed064c1fc3b697a7.tar.gz
qmmp-545d52a2d4951596afac59e7ed064c1fc3b697a7.tar.bz2
qmmp-545d52a2d4951596afac59e7ed064c1fc3b697a7.zip
fixed kde notification with Qt 4.6 (Artur Guzik)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1374 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/kdenotify')
-rw-r--r--src/plugins/General/kdenotify/kdenotify.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/General/kdenotify/kdenotify.cpp b/src/plugins/General/kdenotify/kdenotify.cpp
index 2dafa5df1..5c67107e1 100644
--- a/src/plugins/General/kdenotify/kdenotify.cpp
+++ b/src/plugins/General/kdenotify/kdenotify.cpp
@@ -27,6 +27,7 @@
#include <QFileInfo>
#include <QDir>
#include <QSettings>
+#include <QDebug>
#include <qmmp/soundcore.h>
#include <qmmp/metadatamanager.h>
#include "kdenotify.h"
@@ -35,11 +36,13 @@ KdeNotify::KdeNotify(QObject *parent) : General(parent)
{
notifier = new QDBusInterface("org.kde.VisualNotifications",
"/VisualNotifications", "org.kde.VisualNotifications");
- if(notifier->isValid())
+ if(notifier->lastError().type() != QDBusError::NoError)
{
- qWarning("KdeNotify: unable to create dbus interface");
+ qWarning() << "KdeNotify: unable to create dbus interface(" +
+ notifier->lastError().message() + ")";
return;
}
+
QSettings settings(Qmmp::configFile(),QSettings::IniFormat);
settings.beginGroup("Kde_Notifier");
m_NotifyDelay = settings.value("notify_delay",10000).toInt();