From 32e801f26831460cfacf62a9ea18c071953d6f8b Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 26 Nov 2008 15:30:02 -0600 Subject: [PATCH] Don't segfault when loading a song specified on the command line. --- src/main.C | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.C b/src/main.C index 588c137..f0e2534 100644 --- a/src/main.C +++ b/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;