Don't display resize cursor for non-resizable TCOs
This commit is contained in:
1 parent
e2e8537b1d
commit
7440794597
10 files changed
+77
-20
No files matched your search
@@ -62,6 +62,16 @@ SampleTCO::SampleTCO( Track * _track ) :
|
||||
// change length of this TCO
|
||||
connect( Engine::getSong(), SIGNAL( tempoChanged( bpm_t ) ),
|
||||
this, SLOT( updateLength( bpm_t ) ) );
|
||||
switch( getTrack()->trackContainer()->type() )
|
||||
{
|
||||
case TrackContainer::BBContainer:
|
||||
setAutoResize( true );
|
||||
break;
|
||||
|
||||
case TrackContainer::SongContainer:
|
||||
setAutoResize( false );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user