}\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