Commit d5a1f615 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮 Committed by Christoph Cullmann
Browse files

avoid double branch name computation

the checkAndRefreshGit() call later in the
constructor will already handle this


(cherry picked from commit f6867ae8)
parent aaf74928
......@@ -51,7 +51,6 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
m_branchBtn->setAutoRaise(true);
m_branchBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
m_branchBtn->setSizePolicy(QSizePolicy::Minimum, m_branchBtn->sizePolicy().verticalPolicy());
m_branchBtn->setText(GitUtils::getCurrentBranchName(m_project->baseDir()));
m_branchBtn->setIcon(QIcon(QStringLiteral(":/icons/icons/sc-apps-git.svg")));
// let tree get focus for keyboard selection of file to open
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment