From 851d75214e649998b8967a7e00db0e919cca901b Mon Sep 17 00:00:00 2001 From: Tony Mountifield Date: Tue, 2 Aug 2022 21:20:25 +0100 Subject: [PATCH] Fix new channel with no info not being displayed. A new connection must always cause a channel update signal to be emitted, even if the channel info for the new channel is empty. Fixes #2754 --- src/channel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/channel.cpp b/src/channel.cpp index b078348a79..c6df1f39b4 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -334,11 +334,11 @@ float CChannel::GetPan ( const int iChanID ) void CChannel::SetChanInfo ( const CChannelCoreInfo& NChanInf ) { - bIsIdentified = true; // Indicate we have received channel info - - // apply value (if different from previous one) - if ( ChannelInfo != NChanInf ) + // apply value (if a new channel or different from previous one) + if ( !bIsIdentified || ChannelInfo != NChanInf ) { + bIsIdentified = true; // Indicate we have received channel info + ChannelInfo = NChanInf; // fire message that the channel info has changed