[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:26:52 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=935d91d

The following commit has been merged in the master branch:
commit 935d91daf871c342b2282f5a05299ed0180723e0
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Tue Sep 3 02:06:56 2013 +0200

    Fixed a crash in mpris plugin
---
 kded/plugins/mpriscontrol/mpriscontrolplugin.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/kded/plugins/mpriscontrol/mpriscontrolplugin.cpp b/kded/plugins/mpriscontrol/mpriscontrolplugin.cpp
index 19d646a..012a381 100644
--- a/kded/plugins/mpriscontrol/mpriscontrolplugin.cpp
+++ b/kded/plugins/mpriscontrol/mpriscontrolplugin.cpp
@@ -133,7 +133,13 @@ void MprisControlPlugin::removePlayer(const QString& ifaceName)
 bool MprisControlPlugin::receivePackage (const NetworkPackage& np)
 {
 
-    if (np.type() != PACKAGE_TYPE_MPRIS) return false;
+    if (np.type() != PACKAGE_TYPE_MPRIS) {
+        return false;
+    }
+
+    if (np.has("playerList")) {
+        return false; //Whoever sent this is an mpris client and not an mpris control!
+    }
 
     //Send the player list
     const QString& player = np.get<QString>("player");

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list