From cd6770ec8cc27b71e78ff67a9b097573dcaacfc4 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 28 May 2012 21:47:22 +0200 Subject: [PATCH] LogDialog: hide graph column when follow renames is enabled Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index e02b4e82b..3f1addbfc 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -2442,6 +2442,12 @@ void CGitLogListBase::Refresh(BOOL IsCleanFilter) ResetWcRev(); + // HACK to hide graph column + if (m_ShowMask & CGit::LOG_INFO_FOLLOW) + SetColumnWidth(0, 0); + else + SetColumnWidth(0, m_ColumnManager.GetWidth(0, false)); + //Update branch and Tag info ReloadHashMap(); //Assume Thread have exited @@ -2988,6 +2994,9 @@ void CGitLogListBase::SaveColumnWidths() { int maxcol = m_ColumnManager.GetColumnCount(); + // HACK that graph column is always shown + SetColumnWidth(0, m_ColumnManager.GetWidth(0, false)); + for (int col = 0; col < maxcol; col++) if (m_ColumnManager.IsVisible (col)) m_ColumnManager.ColumnResized (col); -- 2.11.4.GIT