Add new items to top.
(This summarizes all changes to all files under Src, including Src\Languages.)
+2006-05-08 Kimmo
+ PATCH: [ 1483344 ] Fix creating private file filters
+ Src: FileFiltersDlg.cpp
+
2006-05-07 Kimmo
PATCH: [ 1483107 ] Remove dublicated code from folder compare progress dlg
Src: DirCompProgressDlg.cpp DirCompProgressDlg.h
* filter directories?
* @todo Warn user instead of silently failing when there
* are no defined filter folders.
+ * @bug Doesn't fail or inform if copying template file fails.
*/
void FileFiltersDlg::OnBnClickedFilterfileNewbutton()
{
return;
}
+ CString templatePath(globalPath);
+ if (templatePath[templatePath.GetLength()-1] != '\\')
+ templatePath += "\\";
+ templatePath += FILE_FILTER_TEMPLATE;
+
CString path = (globalPath.IsEmpty() ? userPath : globalPath);
if (!globalPath.IsEmpty() && !userPath.IsEmpty())
if (path.GetLength() && path[path.GetLength()-1] != '\\')
path += '\\';
- CString tmplPath = path + FILE_FILTER_TEMPLATE;
-
CString s;
if (SelectFile(s, path, title, IDS_FILEFILTER_FILEMASK, FALSE))
{
s += FileFilterExt;
}
- CopyFile(tmplPath, s, TRUE);
+ CopyFile(templatePath, s, TRUE);
theApp.m_globalFileFilter.EditFileFilter(s);
FileFilterMgr *pMgr = theApp.m_globalFileFilter.GetManager();
pMgr->AddFilter(s);