update combobox in BB-editor when renaming BB-track (closes #2056354)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1451 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-20 11:48:14 +00:00
parent 1087aa77b5
commit 05d4da6a37
4 changed files with 11 additions and 4 deletions

View File

@@ -311,6 +311,9 @@ bbTrack::bbTrack( trackContainer * _tc ) :
setName( tr( "Beat/Bassline %1" ).arg( bbNum ) );
engine::getBBTrackContainer()->setCurrentBB( bbNum );
engine::getBBTrackContainer()->updateComboBox();
connect( this, SIGNAL( nameChanged() ),
engine::getBBTrackContainer(), SLOT( updateComboBox() ) );
}
@@ -530,8 +533,6 @@ bbTrackView::bbTrackView( bbTrack * _bbt, trackContainerView * _tcv ) :
m_trackLabel->show();
connect( m_trackLabel, SIGNAL( clicked( bool ) ),
this, SLOT( clickedTrackLabel() ) );
connect( m_trackLabel, SIGNAL( nameChanged() ),
engine::getBBTrackContainer(), SLOT( updateComboBox() ) );
connect( m_trackLabel, SIGNAL( pixmapChanged() ),
engine::getBBTrackContainer(), SLOT( updateComboBox() ) );
setModel( _bbt );