Fix inability to save the user directory

This commit is contained in:
Jean Pierre Cimalando 2021-04-06 01:18:39 +02:00
parent 539fbf6442
commit 0a40e29a8b

View file

@ -123,7 +123,8 @@ static const fs::path getSettingsPath()
dirPath /= "SFZTools";
dirPath /= "sfizz";
std::error_code ec;
if (!fs::create_directories(dirPath, ec))
fs::create_directories(dirPath, ec);
if (ec)
return {};
return dirPath / "settings.xml";
}