diff options
author | David Robillard <d@drobilla.net> | 2011-12-07 22:21:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-07 22:21:37 +0000 |
commit | 89c181f67cb5ec7373148b438c8db0acee5c7b84 (patch) | |
tree | 754c7a7a7463e00f7013411d163df36855ec91ee /src/serialisation | |
parent | 23ebb35d0e6bbf8e1912f98a05d62d29ae907ade (diff) | |
download | ingen-89c181f67cb5ec7373148b438c8db0acee5c7b84.tar.gz ingen-89c181f67cb5ec7373148b438c8db0acee5c7b84.tar.bz2 ingen-89c181f67cb5ec7373148b438c8db0acee5c7b84.zip |
Fix saving.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3832 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<const Patch> 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); |