diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-08-15 13:01:45 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-08-15 13:51:37 +0200 |
commit | 23536e9b426aba67880a9ef19e9c67517e642df0 (patch) | |
tree | 037344130a006431247116d65e20e7b32c742049 /src | |
parent | da7a6e64ae68e055cbfa4181e7d78a51a19eae13 (diff) | |
download | qt-creator-23536e9b426aba67880a9ef19e9c67517e642df0.tar.gz |
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 <christian.stenger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseplugin.cpp | 2 |
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(); |