From 9ff8091db3372b1e97a868323715986141b5b798 Mon Sep 17 00:00:00 2001 From: Fastigium Date: Sun, 6 Mar 2016 15:57:25 +0100 Subject: [PATCH] Fix regression that caused faulty FX channel index numbers Commit e919912 changed the behavior of the FX channel swapping code so that it no longer updated the m_channelIndex member of the swapped channels. This caused sends/receives of swapped FX channels to move about when a project was saved and loaded again. --- src/core/FxMixer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/FxMixer.cpp b/src/core/FxMixer.cpp index 2d5061abc..55c9d27e8 100644 --- a/src/core/FxMixer.cpp +++ b/src/core/FxMixer.cpp @@ -383,6 +383,10 @@ void FxMixer::moveChannelLeft( int index ) // Swap positions in array qSwap(m_fxChannels[index], m_fxChannels[index - 1]); + + // Update m_channelIndex of both channels + m_fxChannels[index]->m_channelIndex = index; + m_fxChannels[index - 1]->m_channelIndex = index -1; }