Timeline: Fix determination of project name from command-line.
Closes #169
This commit is contained in:
parent
640bfbb4d1
commit
3e4c6e9a50
|
@ -329,18 +329,20 @@ Project::open ( const char *name )
|
|||
if ( created_by )
|
||||
free( created_by );
|
||||
|
||||
set_name( name );
|
||||
|
||||
*_path = '\0';
|
||||
|
||||
fl_filename_absolute( _path, sizeof( _path ), "." );
|
||||
|
||||
set_name( _path );
|
||||
|
||||
_is_open = true;
|
||||
|
||||
tle->load_timeline_settings();
|
||||
|
||||
timeline->zoom_fit();
|
||||
|
||||
MESSAGE( "Loaded project \"%s\"", name );
|
||||
MESSAGE( "Loaded project \"%s\"", _path );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -2052,7 +2052,8 @@ Timeline::command_load ( const char *name, const char *display_name )
|
|||
return false;
|
||||
}
|
||||
|
||||
Project::set_name ( display_name ? display_name : name );
|
||||
if ( display_name )
|
||||
Project::set_name ( display_name );
|
||||
|
||||
apply_track_order();
|
||||
|
||||
|
|
Loading…
Reference in New Issue