Skip to content

Commit

Permalink
Fix new channel with no info not being displayed.
Browse files Browse the repository at this point in the history
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 jamulussoftware#2754
  • Loading branch information
softins committed Aug 2, 2022
1 parent b041f91 commit 369f109
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 369f109

Please sign in to comment.