summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index 609a7425cd..269939ef19 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<ProjectExplorer::Project *> projects = ProjectExplorer::SessionManager::projects();