summaryrefslogtreecommitdiffstats
path: root/src/libs/serialisation
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/serialisation')
-rw-r--r--src/libs/serialisation/Loader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/serialisation/Loader.cpp b/src/libs/serialisation/Loader.cpp
index 88b0a6a3..84b935d9 100644
--- a/src/libs/serialisation/Loader.cpp
+++ b/src/libs/serialisation/Loader.cpp
@@ -114,6 +114,10 @@ Loader::load(SharedPtr<EngineInterface> engine,
if (patch_path != "/")
engine->create_patch(patch_path, patch_poly);
+
+ /* Set document metadata (so File->Save doesn't prompt)
+ * FIXME: This needs some thinking for multiple clients... */
+ engine->set_variable(patch_path, "ingen:document", Atom(document_uri.c_str()));
/* Load (plugin) nodes */