diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-20 03:20:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-20 03:20:37 +0000 |
commit | a4b8921a82b7b8b09f4daec6ad3faf144f3b804d (patch) | |
tree | 85887f9faff609476889348e65f2a507cbd8f509 /libs/ardour/session_state.cc | |
parent | c6ca7ce48fb1339040878fb2af9958894bcee1b6 (diff) |
try to make NewSessionDialog only show up when really needed, and only have necessary tabs; clear out several track control buttons and simplify track header context menu for SAE mode
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2799 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 76e6d6196e..fd2c9fa982 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -457,7 +457,7 @@ Session::setup_raid_path (string path) } int -Session::create (bool& new_session, string* mix_template, nframes_t initial_length) +Session::create (bool& new_session, const string& mix_template, nframes_t initial_length) { string dir; @@ -502,8 +502,8 @@ Session::create (bool& new_session, string* mix_template, nframes_t initial_leng /* check new_session so we don't overwrite an existing one */ - if (mix_template) { - std::string in_path = *mix_template; + if (!mix_template.empty()) { + std::string in_path = mix_template; ifstream in(in_path.c_str()); |