summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 21:12:35 +0100
committerDavid Robillard <d@drobilla.net>2019-03-09 00:43:44 +0100
commit50b5df8e10ecb32b2691dd3871de92539766d451 (patch)
treedc8810eb35d835eba7c031e0cc5636abc76b263c /src/gui
parent2d76872a6c2d55df18c44ed39fc3a6cbfa3d2ea3 (diff)
downloadingen-50b5df8e10ecb32b2691dd3871de92539766d451.tar.gz
ingen-50b5df8e10ecb32b2691dd3871de92539766d451.tar.bz2
ingen-50b5df8e10ecb32b2691dd3871de92539766d451.zip
Make start_to_file() take a FilePath for type safety
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/ThreadedLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp
index 9d87fba5..45ac4f7f 100644
--- a/src/gui/ThreadedLoader.cpp
+++ b/src/gui/ThreadedLoader.cpp
@@ -138,7 +138,7 @@ ThreadedLoader::save_graph_event(SPtr<const client::GraphModel> model,
if (uri.string().find(".ingen") != std::string::npos) {
_app.serialiser()->write_bundle(model, uri);
} else {
- _app.serialiser()->start_to_file(model->path(), std::string(uri.path()));
+ _app.serialiser()->start_to_file(model->path(), uri.file_path());
_app.serialiser()->serialise(model);
_app.serialiser()->finish();
}