Strip .ardour prefix from session files selected from the startup dialogue. May fix #3558.
git-svn-id: svn://localhost/ardour2/branches/3.0@10153 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b85e065069
commit
6a3d6f3549
|
@ -2567,6 +2567,12 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
|
|||
|
||||
session_name = _startup->session_name (likely_new);
|
||||
|
||||
string::size_type suffix = session_name.find (statefile_suffix);
|
||||
|
||||
if (suffix != string::npos) {
|
||||
session_name = session_name.substr (0, suffix);
|
||||
}
|
||||
|
||||
/* this shouldn't happen, but we catch it just in case it does */
|
||||
|
||||
if (session_name.empty()) {
|
||||
|
|
|
@ -132,6 +132,7 @@ PBD::Signal0<void> Session::Quit;
|
|||
static void clean_up_session_event (SessionEvent* ev) { delete ev; }
|
||||
const SessionEvent::RTeventCallback Session::rt_cleanup (clean_up_session_event);
|
||||
|
||||
/** @param snapshot_name Snapshot name, without .ardour prefix */
|
||||
Session::Session (AudioEngine &eng,
|
||||
const string& fullpath,
|
||||
const string& snapshot_name,
|
||||
|
|
|
@ -134,7 +134,7 @@ using namespace std;
|
|||
using namespace ARDOUR;
|
||||
using namespace PBD;
|
||||
|
||||
|
||||
/** @param snapshot_name Snapshot name, without the .ardour prefix */
|
||||
void
|
||||
Session::first_stage_init (string fullpath, string snapshot_name)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user