fix #6640 (snapshot clears "dirty" flag)

empty name indicates current-session name.
This commit is contained in:
Robin Gareus
2015-10-16 21:10:21 +02:00
parent f53dc5945e
commit 619900e333

View File

@@ -2609,10 +2609,6 @@ ARDOUR_UI::save_state_canfail (string name, bool switch_to_it)
if (_session) {
int ret;
if (name.length() == 0) {
name = _session->snap_name();
}
if ((ret = _session->save_state (name, false, switch_to_it)) != 0) {
return ret;
}