diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-06 02:23:53 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-06 02:24:31 +0100 |
commit | 4dc65e6613a375a836de4dd9901ac50a4ab43be6 (patch) | |
tree | afc9a76c5f7fb29b044df4f087cb714905715301 /gtk2_ardour/session_dialog.cc | |
parent | bf874562ef14368a5648215b6dc71936f1c3b33e (diff) |
Prefer testing the session instead of using a global variable
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r-- | gtk2_ardour/session_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 489e52fac6..6959d23d66 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -666,7 +666,7 @@ SessionDialog::setup_new_session_page () //determine the text in the new folder selector if (!ARDOUR_COMMAND_LINE::session_name.empty()) { new_folder_chooser.set_current_folder (poor_mans_glob (Glib::path_get_dirname (ARDOUR_COMMAND_LINE::session_name))); - } else if (ARDOUR_UI::instance()->session_loaded) { + } else if (ARDOUR_UI::instance()->the_session ()) { // point the new session file chooser at the parent directory of the current session string session_parent_dir = Glib::path_get_dirname(ARDOUR_UI::instance()->the_session()->path()); new_folder_chooser.set_current_folder (session_parent_dir); |