From 65a90fd91a89bf97c0d2c0a0a7c29abadd19e3fc Mon Sep 17 00:00:00 2001 From: SinghRajenM Date: Tue, 14 Mar 2017 00:31:26 +0530 Subject: [PATCH] Fixed regression for save session file Fixes #3029, closes #3032 --- PowerEditor/src/NppIO.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index b23b96b47..ab815a751 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1881,6 +1881,7 @@ const TCHAR * Notepad_plus::fileSaveSession(size_t nbFile, TCHAR ** fileNames) sessionExt += TEXT("."); sessionExt += ext; fDlg.setExtFilter(TEXT("Session file"), sessionExt.c_str(), NULL); + fDlg.setExtIndex(0); // 0 index for "custom extention types" } fDlg.setExtFilter(TEXT("All types"), TEXT(".*"), NULL); sessionFileName = fDlg.doSaveDlg();