From 56c64497d5b091e01c065cb497bc228dcaf164b3 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 9 Aug 2012 04:18:51 +0200 Subject: [PATCH] Minor optimization: Use calculated current branch index Signed-off-by: Sven Strickroth --- src/TortoiseProc/BisectStartDlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TortoiseProc/BisectStartDlg.cpp b/src/TortoiseProc/BisectStartDlg.cpp index 605c7f7f2..1db71e036 100644 --- a/src/TortoiseProc/BisectStartDlg.cpp +++ b/src/TortoiseProc/BisectStartDlg.cpp @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2011 Sven Strickroth, +// Copyright (C) 2011-2012 Sven Strickroth, // with code of PullFetchDlg.cpp @@ -91,8 +91,8 @@ BOOL CBisectStartDlg::OnInitDialog() m_cFirstBadRevision.AddString(list[i]); } - m_cLastGoodRevision.SetWindowTextW(L""); - m_cFirstBadRevision.SetWindowTextW(g_Git.GetCurrentBranch()); + m_cLastGoodRevision.SetCurSel(-1); + m_cFirstBadRevision.SetCurSel(current); this->UpdateData(FALSE); -- 2.11.4.GIT