diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 609a7425cd8..269939ef196 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -227,7 +227,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath) { QString searchPath; if (!filePath.isEmpty()) { - searchPath = filePath; + searchPath = QFileInfo(filePath).absolutePath(); } else { // use single project's information if there is only one loaded. const QList projects = ProjectExplorer::SessionManager::projects();