aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris/mpris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/mpris/mpris.cpp')
-rw-r--r--src/plugins/General/mpris/mpris.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp
index d8f331c88..0e9ea5fa6 100644
--- a/src/plugins/General/mpris/mpris.cpp
+++ b/src/plugins/General/mpris/mpris.cpp
@@ -29,12 +29,11 @@ MPRIS::MPRIS(QObject *parent) : QObject(parent)
//MPRISv2.0
new Root2Object(this);
new Player2Object(this);
- connection.registerObject("/org/mpris/MediaPlayer2", this);
connection.registerService("org.mpris.MediaPlayer2.qmmp");
+ connection.registerObject("/org/mpris/MediaPlayer2", this);
}
MPRIS::~MPRIS()
{
- QDBusConnection::sessionBus().unregisterService("org.mpris.qmmp");
QDBusConnection::sessionBus().unregisterService("org.mpris.MediaPlayer2.qmmp");
}