From 6163e272eb195d3d32d6734a87bb6442bfca39e6 Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Tue, 2 Apr 2019 10:25:48 -0500 Subject: [PATCH] last_modified should eb initialized with the current program name, and then overwitten later --- libs/ardour/mixer_snapshot.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/ardour/mixer_snapshot.cc b/libs/ardour/mixer_snapshot.cc index 7fbe75748f..9a967cc370 100644 --- a/libs/ardour/mixer_snapshot.cc +++ b/libs/ardour/mixer_snapshot.cc @@ -25,7 +25,7 @@ MixerSnapshot::MixerSnapshot(Session* s) , label("snapshot") , timestamp(time(0)) , favorite(false) - , last_modified_with("") + , last_modified_with(string_compose("%1 %2", PROGRAM_NAME, revision)) { if(s) _session = s; @@ -36,13 +36,11 @@ MixerSnapshot::MixerSnapshot(Session* s, string file_path) , label("snapshot") , timestamp(time(0)) , favorite(false) - , last_modified_with("") + , last_modified_with(string_compose("%1 %2", PROGRAM_NAME, revision)) { if(s) _session = s; - last_modified_with = string_compose("%1 %2", PROGRAM_NAME, revision); - if(Glib::file_test(file_path.c_str(), Glib::FILE_TEST_IS_DIR)) load_from_session(file_path);