Timeline: Fix false-positive incompatibility with old project files.

This commit is contained in:
Jonathan Moore Liles 2012-04-04 18:59:34 -07:00
parent eda11f56fe
commit e424182dce
1 changed files with 3 additions and 2 deletions

View File

@ -118,7 +118,7 @@ Project::write_info ( void )
strcpy( s, _created_on );
fprintf( fp, "created by\n\t%s\ncreated on\n\t%s\nversion\n\t%d\nsample rate\n\t%lu\n",
APP_TITLE " " VERSION,
APP_NAME " " VERSION,
s,
PROJECT_VERSION,
(unsigned long)timeline->sample_rate() );
@ -283,7 +283,8 @@ Project::open ( const char *name )
if ( ! read_info( &version, &rate, &creation_date, &created_by ) )
return E_INVALID;
if ( strncmp( created_by, APP_TITLE, strlen( APP_TITLE ) ) )
if ( strncmp( created_by, APP_TITLE, strlen( APP_TITLE ) ) &&
strncmp( created_by, APP_NAME, strlen( APP_NAME ) ) )
return E_INVALID;
if ( version != PROJECT_VERSION )