using namespace ARDOUR;
using namespace ARDOUR_UI_UTILS;
-static string poor_mans_glob (string path)
-{
- string copy = path;
- replace_all (copy, "~", Glib::get_home_dir());
- return copy;
-}
-
SessionDialog::SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name, bool cancel_not_quit)
: ArdourDialog (_("Session Setup"), true, true)
, new_only (require_new)
, _master_bus_channel_count_adj (2, 0, 100, 1, 10, 0)
, _existing_session_chooser_used (false)
{
-#ifndef PLATFORM_WINDOWS
- set_keep_above (true);
-#endif
set_position (WIN_POS_CENTER);
get_vbox()->set_spacing (6);
std::string val = new_name_entry.get_text();
strip_whitespace_edges (val);
std::string legal_session_folder_name = legalize_for_path (val);
- return Glib::build_filename (new_folder_chooser.get_current_folder(), legal_session_folder_name);
+ return Glib::build_filename (new_folder_chooser.get_filename (), legal_session_folder_name);
}
}