mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
parent
9210bd37b6
commit
e9c0ee4866
@ -1913,7 +1913,7 @@ const TCHAR * Notepad_plus::fileSaveSession(size_t nbFile, TCHAR ** fileNames)
|
|||||||
sessionExt += TEXT(".");
|
sessionExt += TEXT(".");
|
||||||
sessionExt += ext;
|
sessionExt += ext;
|
||||||
fDlg.setExtFilter(TEXT("Session file"), sessionExt.c_str(), NULL);
|
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);
|
fDlg.setExtFilter(TEXT("All types"), TEXT(".*"), NULL);
|
||||||
sessionFileName = fDlg.doSaveDlg();
|
sessionFileName = fDlg.doSaveDlg();
|
||||||
|
@ -1381,6 +1381,7 @@ INT_PTR CALLBACK UserDefineDialog::run_dlgProc(UINT message, WPARAM wParam, LPAR
|
|||||||
|
|
||||||
FileDialog fDlg(_hSelf, ::GetModuleHandle(NULL));
|
FileDialog fDlg(_hSelf, ::GetModuleHandle(NULL));
|
||||||
fDlg.setExtFilter(TEXT("UDL"), TEXT(".xml"), 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();
|
TCHAR *fn = fDlg.doSaveDlg();
|
||||||
if (!fn) break;
|
if (!fn) break;
|
||||||
generic_string fileName2save = fn;
|
generic_string fileName2save = fn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user