diff --git a/extern/igfd/ImGuiFileDialog.cpp b/extern/igfd/ImGuiFileDialog.cpp index 734b4f3eb..535fb267f 100644 --- a/extern/igfd/ImGuiFileDialog.cpp +++ b/extern/igfd/ImGuiFileDialog.cpp @@ -608,6 +608,10 @@ namespace IGFD res.ext = pfn.substr(lastPoint + 1); IGFD::Utils::ReplaceString(res.name, "." + res.ext, ""); } + + if (res.path.empty()) { + res.path=separator; + } if (!res.isOk) {