make sure all TCOs are shown after loading project (closes #2016741)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1391 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-28 08:04:41 +00:00
parent 5567fb3056
commit 7eac6423b6
3 changed files with 29 additions and 4 deletions

View File

@@ -952,6 +952,10 @@ void song::loadProject( const QString & _file_name )
{
engine::getMainWindow()->resetWindowTitle();
}
if( engine::getSongEditor() )
{
engine::getSongEditor()->scrolled( 0 );
}
}
@@ -976,9 +980,10 @@ bool song::saveProject( void )
{
engine::getPianoRoll()->saveState( mmp, mmp.content() );
engine::getAutomationEditor()->saveState( mmp, mmp.content() );
( (journallingObject *)( engine::getProjectNotes() ) )->saveState( mmp,
mmp.content() );
m_playPos[Mode_PlaySong].m_timeLine->saveState( mmp, mmp.content() );
( (journallingObject *)( engine::getProjectNotes() ) )->
saveState( mmp, mmp.content() );
m_playPos[Mode_PlaySong].m_timeLine->saveState(
mmp, mmp.content() );
}
saveControllerStates( mmp, mmp.content() );