Skip to content

Commit

Permalink
InstrumentTrack: set range of FX channel model to infinite when loadi…
Browse files Browse the repository at this point in the history
…ng 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.
  • Loading branch information
tobydox committed Jan 17, 2014
1 parent c868d69 commit 12939c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) )
Expand Down

0 comments on commit 12939c2

Please sign in to comment.