Don't segfault when loading a song specified on the command line.
This commit is contained in:
parent
ab3f1037ef
commit
32e801f268
12
src/main.C
12
src/main.C
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue