Browse Source

Timeline: Fix determination of project name from command-line.

Closes #169
tags/non-daw-v1.2.0
Jonathan Moore Liles 8 years ago
parent
commit
3e4c6e9a50
2 changed files with 6 additions and 3 deletions
  1. +4
    -2
      timeline/src/Project.C
  2. +2
    -1
      timeline/src/Timeline.C

+ 4
- 2
timeline/src/Project.C View File

@@ -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;
}


+ 2
- 1
timeline/src/Timeline.C View File

@@ -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…
Cancel
Save