diff --git a/src/core/Track.cpp b/src/core/Track.cpp index e44475d9374..3badd0837c4 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -64,8 +64,7 @@ Track::Track( Type type, TrackContainer * tc ) : m_mutedModel( false, this, tr( "Mute" ) ), /*!< For controlling track muting */ m_soloModel( false, this, tr( "Solo" ) ), /*!< For controlling track soloing */ m_clips() /*!< The clips (segments) */ -{ - m_trackContainer->addTrack( this ); +{ m_height = -1; } @@ -117,6 +116,8 @@ Track * Track::create( Type tt, TrackContainer * tc ) default: break; } + tc->addTrack(t); + if (tc == Engine::patternStore() && t) { t->createClipsForPattern(Engine::patternStore()->numOfPatterns() - 1);