Commit 23536e9b authored by Eike Ziller's avatar Eike Ziller
Browse files

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: default avatarChristian Stenger <>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent da7a6e64
......@@ -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();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment