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

pull/3/head
Jonathan Moore Liles 2008-11-26 15:30:02 -06:00
parent ab3f1037ef
commit 32e801f268
1 changed files with 6 additions and 6 deletions

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." );
}
song.dirty( false );
init_colors();
ui = new UI;
if ( ! lash.init( &argc, &argv, jack_name ) )
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 ] );
}
song.dirty( false );
MESSAGE( "Initializing GUI" );
init_colors();
ui = new UI;
ui->run();
return 0;