Restore having plugins without any capabilities

These won't need to be matched by the other device
This commit is contained in:
Aleix Pol 2016-05-31 20:16:25 +02:00
parent 4383a42703
commit 16eccd46d3

View file

@ -125,9 +125,11 @@ void Device::reloadPlugins()
supportedOutgoingInterfaces += outgoingInterfaces;
}
const bool pluginNeedsCapabilities = !m_incomingCapabilities.isEmpty() || !m_outgoingCapabilities.isEmpty();
//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
if (capabilitiesSupported
if (capabilitiesSupported && pluginNeedsCapabilities
&& (m_incomingCapabilities & outgoingInterfaces).isEmpty()
&& (m_outgoingCapabilities & incomingInterfaces).isEmpty()
) {