We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a3129 commit 26dde38Copy full SHA for 26dde38
1 file changed
src/main/ui/sampler.cpp
@@ -1648,7 +1648,10 @@ namespace lsp
1648
1649
// Obtain the parent directory
1650
io::Path basedir;
1651
- io::Path *base = (path->get_parent(&basedir) == STATUS_OK) ? &basedir : NULL;
+ size_t flags = ui::EXPORT_FLAG_USER_FRIENDLY;
1652
+ io::Path *base = (path->get_parent(&basedir) == STATUS_OK) ? &basedir : NULL;
1653
+ if (base != NULL)
1654
+ flags |= ui::EXPORT_FLAG_RELATIVE_PATHS;
1655
1656
// Create LSPC file
1657
lspc::File fd;
@@ -1674,7 +1677,7 @@ namespace lsp
1674
1677
}
1675
1678
1676
1679
// Call wrapper to serialize
- if ((res = pWrapper->export_settings(&s, base)) != STATUS_OK)
1680
+ if ((res = pWrapper->export_settings(&s, flags, base)) != STATUS_OK)
1681
{
1682
s.close();
1683
fd.close();
0 commit comments