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

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