OSDN Git Service

Auto add patch file that chosen at export to import patch list
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / ImportPatchDlg.cpp
index 00b00a1..611ed08 100644 (file)
@@ -42,7 +42,17 @@ BOOL CImportPatchDlg::OnInitDialog()
 \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
        EnableSaveRestore(_T("ImportDlg"));\r
+\r
        return TRUE;\r
 }\r
 \r
@@ -147,6 +157,8 @@ void CImportPatchDlg::OnBnClickedButtonRemove()
 \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