diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a10e4b5225..c368bed5f3 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -186,7 +186,6 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], string rcfile) open_session_selector = 0; have_configure_timeout = false; have_disk_speed_dialog_displayed = false; - _will_create_new_session_automatically = false; session_loaded = false; last_speed_displayed = -1.0f; keybindings_path = ARDOUR::find_config_file ("ardour.bindings"); @@ -2580,8 +2579,7 @@ ARDOUR_UI::cmdline_new_session (string path) } new_session (path); - - _will_create_new_session_automatically = false; /* done it */ + return FALSE; /* don't call it again */ } diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 8e8753c87b..7f16ff7eec 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -119,14 +119,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI ARDOUR::Session* the_session() { return session; } - bool will_create_new_session_automatically() const { - return _will_create_new_session_automatically; - } - - void set_will_create_new_session_automatically (bool yn) { - _will_create_new_session_automatically = yn; - } - bool new_session(std::string path = string()); gint cmdline_new_session (string path); @@ -542,8 +534,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI gint session_menu (GdkEventButton *); - bool _will_create_new_session_automatically; - NewSessionDialog* new_session_dialog; void open_session ();