From f9d23955b571e7679aaa90f58be38425bb6fcb2c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 17 Mar 2007 02:12:40 +0000 Subject: prevent wierd GTK main loop situation when quitting from NSD at startup git-svn-id: svn://localhost/ardour2/trunk@1610 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/main.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/main.cc') diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index a3ea0ca4b4..0279c4953e 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -127,7 +127,9 @@ maybe_load_session () if (!session_name.length()) { ui->hide_splash (); if (!Config->get_no_new_session_dialog()) { - ui->new_session (); + if (!ui->new_session ()) { + return false; + } } return true; @@ -168,7 +170,9 @@ maybe_load_session () /* Show the NSD */ ui->hide_splash (); if (!Config->get_no_new_session_dialog()) { - ui->new_session (); + if (!ui->new_session ()) { + return false; + } } } -- cgit v1.2.3