Notify if a package is being discarded

This commit is contained in:
Aleix Pol 2016-06-03 15:51:05 +02:00
parent fd19426756
commit 8736d2559e

View file

@ -330,7 +330,10 @@ void Device::privateReceivedPackage(const NetworkPackage& np)
reloadPlugins();
}
} else if (isTrusted()) {
QList<KdeConnectPlugin*> plugins = m_pluginsByIncomingInterface.values(np.type());
const QList<KdeConnectPlugin*> plugins = m_pluginsByIncomingInterface.values(np.type());
if (plugins.isEmpty()) {
qWarning() << "discarding unsupported package" << np.type();
}
foreach(KdeConnectPlugin* plugin, plugins) {
plugin->receivePackage(np);
}