From edcedabed99849bd89022890b23a199ebb468ba5 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 29 Jul 2021 09:31:09 +0200 Subject: Vcs: Use FilePath in IVersionControl API Adapt first level of users. Change-Id: Ifcd7bff45631ff3b9e26a9e3176daa6cf0cf2e56 Reviewed-by: Qt CI Bot Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsbaseplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp') diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 05e3557e21..ffa1e51ad1 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -241,7 +241,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath) QString topLevelPath; IVersionControl *vc = VcsManager::findVersionControlForDirectory( searchPath, &topLevelPath); - return (vc && !topLevelPath.isEmpty()) ? vc->vcsTopic(topLevelPath) : QString(); + return (vc && !topLevelPath.isEmpty()) ? vc->vcsTopic(FilePath::fromString(topLevelPath)) : QString(); } static inline QString displayNameOfEditor(const QString &fileName) @@ -657,7 +657,7 @@ void VcsBasePluginPrivate::createRepository() return; } while (true); // Create - const bool rc = vcsCreateRepository(directory); + const bool rc = vcsCreateRepository(FilePath::fromString(directory)); const QString nativeDir = QDir::toNativeSeparators(directory); if (rc) { QMessageBox::information(mw, tr("Repository Created"), -- cgit v1.2.1