From 8736d2559e59aa4cb1244ecbc2b4ebbeeffad836 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 3 Jun 2016 15:51:05 +0200 Subject: [PATCH] Notify if a package is being discarded --- core/device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/device.cpp b/core/device.cpp index f4c70a27e..b9728104e 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -330,7 +330,10 @@ void Device::privateReceivedPackage(const NetworkPackage& np) reloadPlugins(); } } else if (isTrusted()) { - QList plugins = m_pluginsByIncomingInterface.values(np.type()); + const QList plugins = m_pluginsByIncomingInterface.values(np.type()); + if (plugins.isEmpty()) { + qWarning() << "discarding unsupported package" << np.type(); + } foreach(KdeConnectPlugin* plugin, plugins) { plugin->receivePackage(np); }