Browse Source

Don't segfault when loading a song specified on the command line.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 16 years ago
parent
commit
32e801f268
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/main.C

+ 6
- 6
src/main.C View File

@@ -181,6 +181,12 @@ main ( int argc, char **argv )
ASSERTION( "Either the version of JACK you are using does pass BBT information, or the current timebase master does not provide it." ); ASSERTION( "Either the version of JACK you are using does pass BBT information, or the current timebase master does not provide it." );
} }


song.dirty( false );

init_colors();

ui = new UI;

if ( ! lash.init( &argc, &argv, jack_name ) ) if ( ! lash.init( &argc, &argv, jack_name ) )
WARNING( "error initializing LASH" ); WARNING( "error initializing LASH" );


@@ -191,14 +197,8 @@ main ( int argc, char **argv )
ASSERTION( "Could not load song \"%s\" specified on command line", argv[ 1 ] ); ASSERTION( "Could not load song \"%s\" specified on command line", argv[ 1 ] );
} }


song.dirty( false );

MESSAGE( "Initializing GUI" ); MESSAGE( "Initializing GUI" );


init_colors();

ui = new UI;

ui->run(); ui->run();


return 0; return 0;


Loading…
Cancel
Save