summaryrefslogtreecommitdiff
path: root/gtk2_ardour/session_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-24 22:22:16 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-24 22:22:16 -0400
commitd0b67dce80412883da01d4fcd8c5ed283cb85436 (patch)
tree52ce1cba2a683a7b6439c06a4c91718e84995225 /gtk2_ardour/session_dialog.cc
parent2c9644320fd8ec04ce88c16ee4331679deaa999f (diff)
fix crash when cmdline provides session name
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r--gtk2_ardour/session_dialog.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc
index 038ea11d76..51c7e24f80 100644
--- a/gtk2_ardour/session_dialog.cc
+++ b/gtk2_ardour/session_dialog.cc
@@ -83,6 +83,15 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
set_position (WIN_POS_CENTER);
get_vbox()->set_spacing (6);
+ cancel_button = add_button ((cancel_not_quit ? Stock::CANCEL : Stock::QUIT), RESPONSE_CANCEL);
+ back_button = add_button (Stock::GO_BACK, RESPONSE_NO);
+ open_button = add_button (Stock::OPEN, RESPONSE_ACCEPT);
+
+ back_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::back_button_pressed), false);
+
+ open_button->set_sensitive (false);
+ back_button->set_sensitive (false);
+
/* this is where announcements will be displayed, but it may be empty
* and invisible most of the time.
*/
@@ -108,15 +117,6 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
get_vbox()->show_all ();
- cancel_button = add_button ((cancel_not_quit ? Stock::CANCEL : Stock::QUIT), RESPONSE_CANCEL);
- back_button = add_button (Stock::GO_BACK, RESPONSE_NO);
- open_button = add_button (Stock::OPEN, RESPONSE_ACCEPT);
-
- back_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::back_button_pressed), false);
-
- open_button->set_sensitive (false);
- back_button->set_sensitive (false);
-
/* fill data models and how/hide accordingly */
populate_session_templates ();