From 4212e23e776de68535a5a9754a773620594e441d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 11 Jul 2024 19:02:53 -0600 Subject: [PATCH] make "modified-with" a session member --- libs/ardour/ardour/session.h | 1 + libs/ardour/session_state.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index d5a0fb8d13..38bda1bd05 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -2381,6 +2381,7 @@ private: std::shared_ptr get_midi_nth_route_by_id (PresentationInfo::order_t n) const; std::string created_with; + mutable std::string modified_with; void midi_track_presentation_info_changed (PBD::PropertyChange const &, std::weak_ptr); void rewire_selected_midi (std::shared_ptr); diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 78ef96c7cb..3f642d78de 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1215,7 +1215,7 @@ Session::state (bool save_template, snapshot_t snapshot_type, bool for_archive, child = node->add_child ("ProgramVersion"); child->set_property("created-with", created_with); - std::string modified_with = string_compose ("%1 %2", PROGRAM_NAME, revision); + modified_with = string_compose ("%1 %2", PROGRAM_NAME, revision); child->set_property("modified-with", modified_with); /* store configuration settings */ @@ -1780,6 +1780,8 @@ Session::set_state (const XMLNode& node, int version) created_with = "unknown"; if ((child = find_named_node (node, "ProgramVersion")) != 0) { child->get_property (X_("created-with"), created_with); + + child->get_property (X_("modified-with"), modified_with); } setup_raid_path(_session_dir->root_path());