SampleTrack: set/update tooltip for samples when loading project

The tooltip for sample track object views was not restored properly
when loading projects. Thanks to Mikobuntu for pointing out this issue.
This commit is contained in:
Tobias Doerffel
2012-01-29 12:01:21 +01:00
parent 5977041b6e
commit 3e4b824daf

View File

@@ -197,6 +197,10 @@ sampleTCOView::sampleTCOView( sampleTCO * _tco, trackView * _tv ) :
trackContentObjectView( _tco, _tv ),
m_tco( _tco )
{
// update UI and tooltip
updateSample();
// track future changes of sampleTCO
connect( m_tco, SIGNAL( sampleChanged() ),
this, SLOT( updateSample() ) );
}