From a45c01de0fbe5c34769d683acaf985c050e82731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Mon, 9 Oct 2023 11:46:17 -0300 Subject: [PATCH] Made Session not save EDL files in the session file. --- mrv2/docs/HISTORY.md | 1 + mrv2/lib/mrvFl/mrvSession.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mrv2/docs/HISTORY.md b/mrv2/docs/HISTORY.md index d90c462b3..d255b0d38 100644 --- a/mrv2/docs/HISTORY.md +++ b/mrv2/docs/HISTORY.md @@ -8,6 +8,7 @@ v0.8.0 - Added session name to the window's title bar. - Fixed a typo in Python's binding to sessios (oepenSession instead of openSession). +- Made Save Session not save temporary EDLs in the session file. v0.7.9 ====== diff --git a/mrv2/lib/mrvFl/mrvSession.cpp b/mrv2/lib/mrvFl/mrvSession.cpp index 754de8343..e26adc0e7 100644 --- a/mrv2/lib/mrvFl/mrvSession.cpp +++ b/mrv2/lib/mrvFl/mrvSession.cpp @@ -19,6 +19,7 @@ #include "mrvPanels/mrvPanelsCallbacks.h" #include "mrvEdit/mrvEditCallbacks.h" +#include "mrvEdit/mrvEditUtil.h" #include "mrvApp/mrvFilesModel.h" #include "mrvApp/mrvSettingsObject.h" @@ -71,8 +72,11 @@ namespace mrv session["version"] = 6; std::vector< FilesModelItem > files; - for (const auto& file : files_ptrs) + for (const auto file : files_ptrs) { + const std::string fileName = file->path.get(); + if (isTemporaryEDL(fileName)) + continue; files.push_back(*file.get()); } session["files"] = files;