Notify if a package is being discarded
This commit is contained in:
parent
fd19426756
commit
8736d2559e
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue