diff options
author | David Robillard <d@drobilla.net> | 2008-05-20 04:45:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-20 04:45:45 +0000 |
commit | 240f6f0c4e6f5d2770fd166f162df41906e2e230 (patch) | |
tree | ee2c640184190c593412452ac02d77dd293efa09 /src/libs/serialisation/Loader.cpp | |
parent | 161d33090fdf8db67aa8c3a84b2cea01d8b9ac9e (diff) | |
download | ingen-240f6f0c4e6f5d2770fd166f162df41906e2e230.tar.gz ingen-240f6f0c4e6f5d2770fd166f162df41906e2e230.tar.bz2 ingen-240f6f0c4e6f5d2770fd166f162df41906e2e230.zip |
Fix "unable to create patch '/'" error when importing at root.
git-svn-id: http://svn.drobilla.net/lad/ingen@1222 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/serialisation/Loader.cpp')
-rw-r--r-- | src/libs/serialisation/Loader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/serialisation/Loader.cpp b/src/libs/serialisation/Loader.cpp index c53755f5..162589b6 100644 --- a/src/libs/serialisation/Loader.cpp +++ b/src/libs/serialisation/Loader.cpp @@ -112,7 +112,8 @@ Loader::load(SharedPtr<EngineInterface> engine, cout << " as " << patch_path << endl; - engine->create_patch(patch_path, patch_poly); + if (patch_path != "/") + engine->create_patch(patch_path, patch_poly); /* Load (plugin) nodes */ |