1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

BLOCKS API: avoided empty block versions overwriting previously valid ones

This commit is contained in:
jules 2018-01-30 09:47:29 +00:00
parent 1c037e07be
commit 77e94d905b

View file

@ -370,7 +370,7 @@ struct PhysicalTopologySource::Internal
String deviceVersion (reinterpret_cast<const char*> (d.version.version),
jmin (static_cast<size_t> (d.version.length), sizeof (d.version.version)));
if (d.uid == uid && deviceVersion != version)
if (d.uid == uid && deviceVersion != version && deviceVersion.isNotEmpty())
return true;
}