From 367bca4da09146a4ce7e8933484d7a40df46e744 Mon Sep 17 00:00:00 2001 From: Yue Lin Ho Date: Mon, 16 Jun 2014 00:34:52 +0200 Subject: [PATCH] RequestPullDlg: Speed up filling branch combo box Signed-off-by: Yue Lin Ho Signed-off-by: Sven Strickroth --- src/TortoiseProc/RequestPullDlg.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/TortoiseProc/RequestPullDlg.cpp b/src/TortoiseProc/RequestPullDlg.cpp index 9cf520708..c111e1089 100644 --- a/src/TortoiseProc/RequestPullDlg.cpp +++ b/src/TortoiseProc/RequestPullDlg.cpp @@ -1,7 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2011-2013 - TortoiseGit -// Copyright (C) 2011-2013 Sven Strickroth, +// Copyright (C) 2011-2014 - TortoiseGit // with code of PullFetchDlg.cpp @@ -79,10 +78,7 @@ BOOL CRequestPullDlg::OnInitDialog() STRING_VECTOR list; g_Git.GetBranchList(list, NULL, CGit::BRANCH_ALL); m_cStartRevision.SetMaxHistoryItems(0x7FFFFFFF); - for (unsigned int i = 0; i < list.size(); ++i) - { - m_cStartRevision.AddString(list[i]); - } + m_cStartRevision.SetList(list); CString WorkingDir=g_Git.m_CurrentDir; WorkingDir.Replace(_T(':'), _T('_')); -- 2.11.4.GIT