From 77e94d905b1de612ef6977dc76a6669f7f7f439d Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 30 Jan 2018 09:47:29 +0000 Subject: [PATCH] BLOCKS API: avoided empty block versions overwriting previously valid ones --- .../juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp index 27416d5e4a..a21e9804dc 100644 --- a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp +++ b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp @@ -370,7 +370,7 @@ struct PhysicalTopologySource::Internal String deviceVersion (reinterpret_cast (d.version.version), jmin (static_cast (d.version.length), sizeof (d.version.version))); - if (d.uid == uid && deviceVersion != version) + if (d.uid == uid && deviceVersion != version && deviceVersion.isNotEmpty()) return true; }