From 2f0cd8b7c4c67989f28f2cb0c5b6ce4a169867bd Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 4 Feb 2014 23:44:20 +0100 Subject: [PATCH] InstrumentTrack: load pitch range model before pitch model As the pitch range model defines the range of the pitch model we have to load it first so the range of m_pitchModel gets adjusted accordingly. Closes #272. --- src/tracks/InstrumentTrack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index 772e02de9..08e4bfb40 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -706,8 +706,8 @@ void InstrumentTrack::loadTrackSpecificSettings( const QDomElement & thisElement m_volumeModel.loadSettings( thisElement, "vol" ); m_panningModel.loadSettings( thisElement, "pan" ); - m_pitchModel.loadSettings( thisElement, "pitch" ); m_pitchRangeModel.loadSettings( thisElement, "pitchrange" ); + m_pitchModel.loadSettings( thisElement, "pitch" ); m_effectChannelModel.loadSettings( thisElement, "fxch" ); m_baseNoteModel.loadSettings( thisElement, "basenote" );