OSDN Git Service

Fixed Issue #203: Remote URL select box in sync dialog is not populated with remotes.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / BranchCombox.h
index 14b1015..fd0ded8 100644 (file)
@@ -53,7 +53,11 @@ protected:
                }\r
                else if(!pullBranch.IsEmpty())\r
                {\r
-                       m_ctrlRemoteBranch.AddString(pullBranch);\r
+                       int index=m_ctrlRemoteBranch.FindStringExact(0,pullBranch);\r
+                       if( index<0 )\r
+                               m_ctrlRemoteBranch.AddString(pullBranch);\r
+                       else\r
+                               m_ctrlRemoteBranch.SetCurSel(index);\r
                }\r
                //else if(!this->m_RegKeyRemoteBranch.IsEmpty())\r
                else\r