1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

BLOCKS: Fixed issue preventing update of blocks version numbers after updating over API/DNA/Topology.

This commit is contained in:
hogliux 2017-08-22 11:55:51 +01:00
parent 6383b05d7f
commit 42826ae93c

View file

@ -362,10 +362,9 @@ struct PhysicalTopologySource::Internal
static bool versionNumberAddedToBlock (const juce::Array<DeviceInfo>& devices, Block::UID uid, juce::String version) noexcept
{
if (version.length() == 0)
for (auto&& d : devices)
if (d.uid == uid && d.version.length)
return true;
for (auto&& d : devices)
if (d.uid == uid && memcmp (d.version.version, version.toRawUTF8(), d.version.length) != 0)
return true;
return false;
}