summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-03-17 02:12:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-03-17 02:12:40 +0000
commitf9d23955b571e7679aaa90f58be38425bb6fcb2c (patch)
tree2ffb4213be1f325134d7fc9ef9569a967b428b22 /gtk2_ardour/ardour_ui.cc
parente6481db65410335dc47d87810c3d07f541ca769c (diff)
prevent wierd GTK main loop situation when quitting from NSD at startup2.0beta12
git-svn-id: svn://localhost/ardour2/trunk@1610 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 92eb4e1343..46dbe649c7 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1717,7 +1717,7 @@ ARDOUR_UI::save_template ()
}
}
-void
+bool
ARDOUR_UI::new_session (std::string predetermined_path)
{
string session_name;
@@ -1726,7 +1726,7 @@ ARDOUR_UI::new_session (std::string predetermined_path)
if (!engine->connected()) {
MessageDialog msg (_("Ardour is not connected to JACK at this time. Creating new sessions is not possible."));
msg.run ();
- return;
+ return false;
}
int response = Gtk::RESPONSE_NONE;
@@ -1743,7 +1743,7 @@ ARDOUR_UI::new_session (std::string predetermined_path)
new_session_dialog->hide ();
MessageDialog msg (_("Ardour is not connected to JACK at this time. Creating new sessions is not possible."));
msg.run ();
- return;
+ return false;
}
_session_is_new = false;
@@ -1754,7 +1754,7 @@ ARDOUR_UI::new_session (std::string predetermined_path)
quit();
}
new_session_dialog->hide ();
- return;
+ return false;
} else if (response == Gtk::RESPONSE_NONE) {
@@ -1929,6 +1929,7 @@ ARDOUR_UI::new_session (std::string predetermined_path)
show();
new_session_dialog->get_window()->set_cursor();
new_session_dialog->hide();
+ return true;
}
void