From 62e6a5378aa89ffd57033d08f3721889768b4b3a Mon Sep 17 00:00:00 2001 From: xomx Date: Mon, 28 Oct 2024 20:50:00 +0100 Subject: [PATCH] Fix SaveAs dialog "Append extension" option not working issue Fix the regression introduced in commit: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/f884a39dd422cda908b36e9439fb00c340c4d85e Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/4 Close #15745 --- .../src/WinControls/OpenSaveFileDialog/CustomFileDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/OpenSaveFileDialog/CustomFileDialog.cpp b/PowerEditor/src/WinControls/OpenSaveFileDialog/CustomFileDialog.cpp index b8ad0bb25..027081285 100644 --- a/PowerEditor/src/WinControls/OpenSaveFileDialog/CustomFileDialog.cpp +++ b/PowerEditor/src/WinControls/OpenSaveFileDialog/CustomFileDialog.cpp @@ -505,7 +505,7 @@ private: expandEnv(fileName); bool nameChanged = transformPath(fileName); // Update the controls. - if (doesDirectoryExist(getAbsPath(fileName).c_str())) + if (!doesDirectoryExist(getAbsPath(fileName).c_str())) { // Name is a file path. // Add file extension if missing.