GUI: fix IGFD path reset if it is "/"

This commit is contained in:
tildearrow 2023-03-12 02:06:02 -05:00
parent 43d330831a
commit b768d46ef1

View file

@ -609,6 +609,10 @@ namespace IGFD
IGFD::Utils::ReplaceString(res.name, "." + res.ext, "");
}
if (res.path.empty()) {
res.path=separator;
}
if (!res.isOk)
{
res.name = std::move(pfn);