From b768d46ef12a2359597bcf818b688a54b754541b Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 12 Mar 2023 02:06:02 -0500 Subject: [PATCH] GUI: fix IGFD path reset if it is "/" --- extern/igfd/ImGuiFileDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) {