aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris/mpris.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-05-07 19:23:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-05-07 19:23:40 +0000
commit67cc84bdd339f12e1390a8ecdd2142602c9fdf8e (patch)
tree579b4849c91843965b3457608f8fcb503e56ac15 /src/plugins/General/mpris/mpris.cpp
parentf5bf7b1ac031f164d7eef81d302e2ce2dc9f2bc8 (diff)
downloadqmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.tar.gz
qmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.tar.bz2
qmmp-67cc84bdd339f12e1390a8ecdd2142602c9fdf8e.zip
fixed broken mpris2 (Closes issue 466)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2177 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris/mpris.cpp')
-rw-r--r--src/plugins/General/mpris/mpris.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp
index 6e53d11d9..61caaae64 100644
--- a/src/plugins/General/mpris/mpris.cpp
+++ b/src/plugins/General/mpris/mpris.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2010 by Ilya Kotov *
+ * Copyright (C) 2008-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -34,10 +34,9 @@ MPRIS::MPRIS(QObject *parent) : General(parent)
connection.registerObject("/Player", new PlayerObject(this), QDBusConnection::ExportAllContents);
connection.registerObject("/", new RootObject(this), QDBusConnection::ExportAllContents);
//MPRISv2.0
- connection.registerObject("/org/mpris/MediaPlayer2", new Root2Object(this),
- QDBusConnection::ExportAllContents);
- connection.registerObject("/org/mpris/MediaPlayer2/Player", new Player2Object(this),
- QDBusConnection::ExportAllContents);
+ new Root2Object(this);
+ new Player2Object(this);
+ connection.registerObject("/org/mpris/MediaPlayer2", this);
connection.registerService("org.mpris.qmmp");
connection.registerService("org.mpris.MediaPlayer2.qmmp");
}