From 23536e9b426aba67880a9ef19e9c67517e642df0 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 15 Aug 2014 13:01:45 +0200 Subject: Use correct path for finding window title VCS topic We need to pass the _path_ of the file to findVersionControlForDirectory, excluding the file name. This broke the ClearCase plugin tests, which rely on magic top level directory length sorting behavior. Change-Id: I93e993d9461cc571ea1ae8070eb8d465ad004b9c Reviewed-by: Christian Stenger Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsbaseplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 projects = ProjectExplorer::SessionManager::projects(); -- cgit v1.2.1