From e424182dce83e4473b1572222a0b50613fdad2eb Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 4 Apr 2012 18:59:34 -0700 Subject: [PATCH] Timeline: Fix false-positive incompatibility with old project files. --- timeline/src/Project.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/timeline/src/Project.C b/timeline/src/Project.C index f85e832..f516c99 100644 --- a/timeline/src/Project.C +++ b/timeline/src/Project.C @@ -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 )