forked from qt-creator/qt-creator
PE: Fix empty Projects view when the project is configured
Amends 64952cb511
Fixes: QTCREATORBUG-31490
Change-Id: I94a40df908ce1c37c4458b029067501321bc4859
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -452,10 +452,10 @@ void FlatModel::handleProjectAdded(Project *project)
|
|||||||
|
|
||||||
const FilePath &rootPath = project->rootProjectDirectory();
|
const FilePath &rootPath = project->rootProjectDirectory();
|
||||||
IVersionControl *vc = VcsManager::findVersionControlForDirectory(rootPath);
|
IVersionControl *vc = VcsManager::findVersionControlForDirectory(rootPath);
|
||||||
if (!vc)
|
if (vc) {
|
||||||
return;
|
vc->monitorDirectory(rootPath);
|
||||||
vc->monitorDirectory(rootPath);
|
connect(vc, &IVersionControl::updateFileStatus, this, &FlatModel::updateVCStatusFor);
|
||||||
connect(vc, &IVersionControl::updateFileStatus, this, &FlatModel::updateVCStatusFor);
|
}
|
||||||
|
|
||||||
addOrRebuildProjectModel(project);
|
addOrRebuildProjectModel(project);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user