Signed-off-by: Frank Li <lznuaa@gmail.com>
{\r
m_ctrlRemoteBranch.AddString(pullBranch);\r
}\r
{\r
m_ctrlRemoteBranch.AddString(pullBranch);\r
}\r
- else if(!this->m_RegKeyRemoteBranch.IsEmpty())\r
+ //else if(!this->m_RegKeyRemoteBranch.IsEmpty())\r
+ else\r
- m_ctrlRemoteBranch.AddString(currentBranch);\r
+ m_ctrlRemoteBranch.SetCurSel(-1);\r
}\r
\r
this->AddBranchToolTips(&this->m_ctrlLocalBranch,this->m_pTooltip);\r
}\r
\r
this->AddBranchToolTips(&this->m_ctrlLocalBranch,this->m_pTooltip);\r
\r
m_BranchRemote.LoadHistory(CString(_T("Software\\TortoiseGit\\History\\RemoteBranch\\"))+WorkingDir, _T("branch"));\r
if( !pushBranch.IsEmpty() )\r
\r
m_BranchRemote.LoadHistory(CString(_T("Software\\TortoiseGit\\History\\RemoteBranch\\"))+WorkingDir, _T("branch"));\r
if( !pushBranch.IsEmpty() )\r
m_BranchRemote.AddString(pushBranch);\r
m_BranchRemote.AddString(pushBranch);\r
-\r
- m_BranchRemote.SetCurSel(0);\r
+ m_BranchRemote.SetCurSel(0); \r
+ }\r
+ else\r
+ m_BranchRemote.SetCurSel(-1);\r
\r
}\r
// CPushDlg message handlers\r
\r
}\r
// CPushDlg message handlers\r