Don't count channels reveiving input from another channel as unused

This commit is contained in:
Daniel Winzen
2015-01-03 06:52:05 +01:00
parent 4043868992
commit e6e8f28fc8

View File

@@ -418,8 +418,9 @@ void FxMixerView::deleteUnusedChannels()
}
}
}
FxChannel * ch = Engine::fxMixer()->effectChannel( i );
// delete channel if no references found
if( empty )
if( empty && ch->m_receives.isEmpty() )
{
deleteChannel( i );
}