From 9d817bf7623dd37bb8d561bb9e02f358375f1392 Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Mon, 29 Jul 2019 10:08:17 -0500 Subject: [PATCH] typo and set label to basename --- libs/ardour/mixer_snapshot_manager.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libs/ardour/mixer_snapshot_manager.cc b/libs/ardour/mixer_snapshot_manager.cc index ec2f2c0923..8ca3c6e7ea 100644 --- a/libs/ardour/mixer_snapshot_manager.cc +++ b/libs/ardour/mixer_snapshot_manager.cc @@ -27,6 +27,8 @@ #include "ardour/session_directory.h" #include "ardour/template_utils.h" +#include "pbd/basename.h" + using namespace ARDOUR; using namespace std; @@ -51,9 +53,13 @@ void MixerSnapshotManager::refresh() for(vector::const_iterator it = global_templates.begin(); it != global_templates.end(); it++) { TemplateInfo info = (*it); - printf("Snapshot name: %s\n", info.name.c_str()); - prinft("Path: %s\n", info.path.c_str()); - _global_snapshots.insert(new MixerSnapshot(_session, info.path)); + + MixerSnapshot* snap = new MixerSnapshot(_session, info.path); + snap->set_label(info.name); + _global_snapshots.insert(snap); + + printf("Snapshot name: %s\n", snap->get_label().c_str()); + printf("Path: %s\n", info.path.c_str()); } //TODO: the local part of this discovery