* send posted events after creating a new project - makes project not being marked as modified right after it's been created

* create empty sample-track and automation-track in new projects



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1253 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-30 22:07:04 +00:00
parent da7312f033
commit 9514af19f4
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
2008-06-30 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/song.cpp:
- send posted events after creating a new project - makes project not
being marked as modified right after it's been created
- create empty sample-track and automation-track in new projects
* src/core/engine.cpp:
clear whole project before deleting everything - fixes segfault when
quitting with controllers added

View File

@@ -779,12 +779,13 @@ void song::createNewProject( void )
t = track::create( track::InstrumentTrack, this );
dynamic_cast< instrumentTrack * >( t )->loadInstrument(
"tripleoscillator" );
// track::create( track::SampleTrack, this );
t = track::create( track::InstrumentTrack,
engine::getBBTrackContainer() );
dynamic_cast< instrumentTrack * >( t )->loadInstrument(
"tripleoscillator" );
track::create( track::SampleTrack, this );
track::create( track::BBTrack, this );
track::create( track::AutomationTrack, this );
m_tempoModel.setInitValue( DefaultTempo );
m_timeSigModel.reset();
@@ -799,6 +800,8 @@ void song::createNewProject( void )
engine::getProjectJournal()->setJournalling( TRUE );
QCoreApplication::sendPostedEvents();
m_modified = FALSE;
if( engine::getMainWindow() )