[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:00 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=c65be84
The following commit has been merged in the master branch:
commit c65be84a89be5640480c7edd97e86648b10f3061
Author: Albert Vaca <albertvaka at gmail.com>
Date: Wed Sep 9 01:14:30 2015 -0700
Only send capabilities packets for paired devices
---
core/device.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/core/device.cpp b/core/device.cpp
index 0d6611b..b5f4895 100644
--- a/core/device.cpp
+++ b/core/device.cpp
@@ -125,8 +125,10 @@ void Device::reloadPlugins()
const QSet<QString> outgoingInterfaces = KPluginMetaData::readStringList(service.rawData(), "X-KdeConnect-OutgoingPackageType").toSet();
const bool pluginEnabled = isPluginEnabled(pluginName);
- if (pluginEnabled)
+
+ if (pluginEnabled) {
supportedIncomingInterfaces += incomingInterfaces;
+ }
//If we don't find intersection with the received on one end and the sent on the other, we don't
//let the plugin stay
@@ -176,7 +178,7 @@ void Device::reloadPlugins()
}
Q_EMIT pluginsChanged();
- if (capabilitiesChanged)
+ if (capabilitiesChanged && isReachable() && isPaired())
{
NetworkPackage np(PACKAGE_TYPE_CAPABILITIES);
np.set<QStringList>("SupportedIncomingInterfaces", newSupportedIncomingInterfaces);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list