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:
Cristian Adam
2024-08-28 14:26:03 +02:00
parent cdf551ccdb
commit 3208cbf9ab

View File

@@ -452,10 +452,10 @@ void FlatModel::handleProjectAdded(Project *project)
const FilePath &rootPath = project->rootProjectDirectory();
IVersionControl *vc = VcsManager::findVersionControlForDirectory(rootPath);
if (!vc)
return;
if (vc) {
vc->monitorDirectory(rootPath);
connect(vc, &IVersionControl::updateFileStatus, this, &FlatModel::updateVCStatusFor);
}
addOrRebuildProjectModel(project);
}