diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 5f5162502..e78a49635 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1913,7 +1913,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.setExtIndex(0); // 0 index for "custom extension types" } fDlg.setExtFilter(TEXT("All types"), TEXT(".*"), NULL); sessionFileName = fDlg.doSaveDlg(); diff --git a/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp b/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp index 6d4c1e2ee..c230f4886 100644 --- a/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp +++ b/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp @@ -1381,6 +1381,7 @@ INT_PTR CALLBACK UserDefineDialog::run_dlgProc(UINT message, WPARAM wParam, LPAR FileDialog fDlg(_hSelf, ::GetModuleHandle(NULL)); fDlg.setExtFilter(TEXT("UDL"), TEXT(".xml"), NULL); + fDlg.setExtIndex(0); // 0 Default index else file will be saved without extension TCHAR *fn = fDlg.doSaveDlg(); if (!fn) break; generic_string fileName2save = fn;