reset m_modified after loading a project, creating a new one or saving
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1095 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2008-06-07 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/song.cpp:
|
||||
reset m_modified after loading a project, creating a new one or saving
|
||||
|
||||
* src/core/song.cpp:
|
||||
in song::setModified() only call mainWindow::resetWindowTitle() when
|
||||
being called with GUI-thread affinity
|
||||
|
||||
@@ -789,9 +789,14 @@ void song::createNewProject( void )
|
||||
m_masterVolumeModel.setInitValue( 100 );
|
||||
m_masterPitchModel.setInitValue( 0 );
|
||||
|
||||
QCoreApplication::instance()->processEvents();
|
||||
|
||||
engine::getProjectJournal()->setJournalling( TRUE );
|
||||
|
||||
m_loadingProject = FALSE;
|
||||
m_modified = FALSE;
|
||||
|
||||
engine::getMainWindow()->resetWindowTitle();
|
||||
}
|
||||
|
||||
|
||||
@@ -908,9 +913,14 @@ void song::loadProject( const QString & _file_name )
|
||||
|
||||
configManager::inst()->addRecentlyOpenedProject( _file_name );
|
||||
|
||||
QCoreApplication::instance()->processEvents();
|
||||
|
||||
engine::getProjectJournal()->setJournalling( TRUE );
|
||||
|
||||
m_loadingProject = FALSE;
|
||||
m_modified = FALSE;
|
||||
|
||||
engine::getMainWindow()->resetWindowTitle();
|
||||
}
|
||||
|
||||
|
||||
@@ -927,7 +937,7 @@ bool song::saveProject( void )
|
||||
m_masterPitchModel.saveSettings( mmp, mmp.head(), "masterpitch" );
|
||||
|
||||
|
||||
( (journallingObject *)( this ) )->saveState( mmp, mmp.content() );
|
||||
saveState( mmp, mmp.content() );
|
||||
|
||||
engine::getFxMixer()->saveState( mmp, mmp.content() );
|
||||
engine::getPianoRoll()->saveState( mmp, mmp.content() );
|
||||
@@ -947,6 +957,7 @@ bool song::saveProject( void )
|
||||
embed::getIconPixmap( "project_save", 24, 24 ),
|
||||
2000 );
|
||||
configManager::inst()->addRecentlyOpenedProject( m_fileName );
|
||||
m_modified = FALSE;
|
||||
engine::getMainWindow()->resetWindowTitle();
|
||||
}
|
||||
else
|
||||
@@ -957,6 +968,7 @@ bool song::saveProject( void )
|
||||
embed::getIconPixmap( "error" ), 4000 );
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user