diff options
Diffstat (limited to 'src/gui/ThreadedLoader.cpp')
-rw-r--r-- | src/gui/ThreadedLoader.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp index 087ade58..d2bfec76 100644 --- a/src/gui/ThreadedLoader.cpp +++ b/src/gui/ThreadedLoader.cpp @@ -147,8 +147,13 @@ ThreadedLoader::save_patch(SharedPtr<PatchModel> model, const string& filename) void ThreadedLoader::save_patch_event(SharedPtr<PatchModel> model, const string& filename) { - if (App::instance().serialiser()) - App::instance().serialiser()->to_file(model, filename); + if (App::instance().serialiser()) { + Serialiser::Record r(model, filename); + if (filename.find(".ingen.lv2") != string::npos) + App::instance().serialiser()->write_bundle(r); + else + App::instance().serialiser()->to_file(r); + } } |