forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -227,7 +227,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath)
|
|||||||
{
|
{
|
||||||
QString searchPath;
|
QString searchPath;
|
||||||
if (!filePath.isEmpty()) {
|
if (!filePath.isEmpty()) {
|
||||||
searchPath = filePath;
|
searchPath = QFileInfo(filePath).absolutePath();
|
||||||
} else {
|
} else {
|
||||||
// use single project's information if there is only one loaded.
|
// use single project's information if there is only one loaded.
|
||||||
const QList<ProjectExplorer::Project *> projects = ProjectExplorer::SessionManager::projects();
|
const QList<ProjectExplorer::Project *> projects = ProjectExplorer::SessionManager::projects();
|
||||||
|
|||||||
Reference in New Issue
Block a user