From 42fc3a270348648e9ef1b0c1e64b2d401c3c96cc Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Wed, 31 Jul 2019 15:53:11 -0500 Subject: [PATCH] MixerSnapshotManager::create_snapshot needs to correctly set the path when it creates the snapshot --- libs/ardour/mixer_snapshot_manager.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/mixer_snapshot_manager.cc b/libs/ardour/mixer_snapshot_manager.cc index e6f56e18df..2ba46ef3f4 100644 --- a/libs/ardour/mixer_snapshot_manager.cc +++ b/libs/ardour/mixer_snapshot_manager.cc @@ -211,6 +211,9 @@ void MixerSnapshotManager::create_snapshot(std::string const& label, RouteList& snapshot->set_label(label); snapshot->write(path); + const string full_path = Glib::build_filename(path, snapshot->get_label() + string(template_suffix)); + snapshot->set_path(full_path); + MixerSnapshot* old_snapshot = get_snapshot_by_name(snapshot->get_label(), global); set& snapshots_list = global ? _global_snapshots : _local_snapshots; set::iterator iter = snapshots_list.find(old_snapshot); @@ -231,6 +234,9 @@ void MixerSnapshotManager::create_snapshot(std::string const& label, std::string snapshot->set_label(label); snapshot->write(path); + const string full_path = Glib::build_filename(path, snapshot->get_label() + string(template_suffix)); + snapshot->set_path(full_path); + MixerSnapshot* old_snapshot = get_snapshot_by_name(snapshot->get_label(), global); set& snapshots_list = global ? _global_snapshots : _local_snapshots; set::iterator iter = snapshots_list.find(old_snapshot);