aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/branchview.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2021-07-30 16:46:27 +0200
committerhjk <[email protected]>2021-08-02 14:40:33 +0000
commitff57cb548d2c528a42fa2870b2486cddc08acfb7 (patch)
tree0c7f371818d436d79cd3d65fac1c98de4d2391bf /src/plugins/git/branchview.cpp
parent17f907da9bd73d9b1515cbdd269c93f0061b7071 (diff)
Vcs: Use more FilePath for file paths
Change-Id: I855cde65d034a9647972a7fddf1e8266d7ccfa88 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/branchview.cpp')
-rw-r--r--src/plugins/git/branchview.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/git/branchview.cpp b/src/plugins/git/branchview.cpp
index 04fe69ebed6..ffc346d71ca 100644
--- a/src/plugins/git/branchview.cpp
+++ b/src/plugins/git/branchview.cpp
@@ -56,6 +56,7 @@
#include <QVBoxLayout>
using namespace Core;
+using namespace Utils;
namespace Git {
namespace Internal {
@@ -139,13 +140,13 @@ BranchView::BranchView()
refreshCurrentRepository();
}
-void BranchView::refreshIfSame(const QString &repository)
+void BranchView::refreshIfSame(const FilePath &repository)
{
if (m_repository == repository)
refreshCurrentRepository();
}
-void BranchView::refresh(const QString &repository, bool force)
+void BranchView::refresh(const FilePath &repository, bool force)
{
if (m_repository == repository && !force)
return;
@@ -156,7 +157,7 @@ void BranchView::refresh(const QString &repository, bool force)
m_addAction->setToolTip(tr("Create Git Repository..."));
m_branchView->setEnabled(false);
} else {
- m_repositoryLabel->setText(QDir::toNativeSeparators(m_repository));
+ m_repositoryLabel->setText(m_repository.toUserOutput());
m_repositoryLabel->setToolTip(GitPlugin::msgRepositoryLabel(m_repository));
m_addAction->setToolTip(tr("Add Branch..."));
m_branchView->setEnabled(true);