From 89c181f67cb5ec7373148b438c8db0acee5c7b84 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Dec 2011 22:21:37 +0000 Subject: Fix saving. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3832 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/serialisation') diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 8d9b490a..84e05022 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -200,7 +200,8 @@ void Serialiser::Impl::write_bundle(SharedPtr patch, const std::string& a_path) { - std::string path(a_path); + + std::string path = Glib::filename_from_uri(a_path); if (Glib::file_test(path, Glib::FILE_TEST_EXISTS) && !Glib::file_test(path, Glib::FILE_TEST_IS_DIR)) { path = Glib::path_get_dirname(path); -- cgit v1.2.1