From 12939c24df48047e8b75b2cd1730a3593a37803d Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 17 Jan 2014 20:01:24 +0100 Subject: [PATCH] InstrumentTrack: set range of FX channel model to infinite when loading settings When loading a project, instrument tracks usually are instantiated/loaded before the FX mixer settings are loaded which results in an empty FX mixer and thus 0 FX channels. The actual FX channel value for the instrument track would be lost that way. Therefore set a big value which is being corrected later by the FxMixerView for all instruments. --- src/tracks/InstrumentTrack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index 414192551..a848b0dc1 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -803,6 +803,7 @@ void InstrumentTrack::loadTrackSpecificSettings( const QDomElement & _this ) } m_pitchModel.loadSettings( _this, "pitch" ); + m_effectChannelModel.setRange( 0, INT_MAX ); m_effectChannelModel.loadSettings( _this, "fxch" ); if( _this.hasAttribute( "baseoct" ) )