OSDN Git Service

Fixed issue #150: When pushing, 'remote' should default to the tracked branch, or...
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / PushDlg.cpp
index 48291a3..22557d0 100644 (file)
@@ -170,9 +170,12 @@ void CPushDlg::Refresh()
 \r
        m_BranchRemote.LoadHistory(CString(_T("Software\\TortoiseGit\\History\\RemoteBranch\\"))+WorkingDir, _T("branch"));\r
        if( !pushBranch.IsEmpty() )\r
+       {\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