#include "stdafx.h"\r
#include "TortoiseProc.h"\r
#include "ImportPatchDlg.h"\r
-\r
+#include "git.h"\r
\r
// CImportPatchDlg dialog\r
\r
AddAnchor(IDOK,BOTTOM_RIGHT);\r
AddAnchor(IDCANCEL,BOTTOM_RIGHT);\r
\r
+ this->AddOthersToAnchor();\r
+\r
+ m_PathList.SortByPathname(true);\r
+\r
+ for(int i=0;i<m_PathList.GetCount();i++)\r
+ {\r
+ m_cList.InsertItem(0,m_PathList[i].GetWinPath());\r
+ }\r
+\r
+ //CAppUtils::SetListCtrlBackgroundImage(m_cList.GetSafeHwnd(), nID);\r
+\r
+ CString title;\r
+ this->GetWindowText(title);\r
+ this->SetWindowText(title+_T(" - ")+g_Git.m_CurrentDir);\r
EnableSaveRestore(_T("ImportDlg"));\r
+\r
return TRUE;\r
}\r
\r
\r
void CImportPatchDlg::OnBnClickedOk()\r
{\r
+ m_PathList.Clear();\r
+\r
for(int i=0;i<m_cList.GetItemCount();i++)\r
{\r
CTGitPath path;\r