From 67cc84bdd339f12e1390a8ecdd2142602c9fdf8e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 7 May 2011 19:23:40 +0000 Subject: 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 --- src/plugins/General/mpris/mpris.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/plugins/General/mpris/mpris.cpp') 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"); } -- cgit v1.2.3-13-gbd6f