FxMixer: Fix channel delete

This commit is contained in:
Vesa
2014-06-12 22:34:32 +03:00
parent 32cfe84dfd
commit 3319380cf6
2 changed files with 6 additions and 6 deletions

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef _FX_MIXER_H
#define _FX_MIXER_H
#ifndef FX_MIXER_H
#define FX_MIXER_H
#include "Model.h"
#include "Mixer.h"

View File

@@ -207,13 +207,13 @@ void FxMixer::deleteChannel(int index)
}
// delete all of this channel's sends and receives
for(int i=0; i<m_fxChannels[index]->m_sends.size(); ++i)
while( ! m_fxChannels[index]->m_sends.isEmpty() )
{
deleteChannelSend(index, m_fxChannels[index]->m_sends[i]);
deleteChannelSend( index, m_fxChannels[index]->m_sends.first() );
}
for(int i=0; i<m_fxChannels[index]->m_receives.size(); ++i)
while( ! m_fxChannels[index]->m_receives.isEmpty() )
{
deleteChannelSend(m_fxChannels[index]->m_receives[i], index);
deleteChannelSend( m_fxChannels[index]->m_receives.first(), index );
}
for(int i=0; i<m_fxChannels.size(); ++i)