Restore having plugins without any capabilities
These won't need to be matched by the other device
This commit is contained in:
parent
4383a42703
commit
16eccd46d3
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue