Docker: Fix Toolchain registration

Toolchains were not registered, as ToolchainBundle(...., AutoRegister)
only registers missing parts of a bundle.

Task-number: QTCREATORBUG-31877
Change-Id: I310b469425ed94274ba12ff5d396b44c9b2eee87
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-10-22 11:12:31 +02:00
parent d0707e17b3
commit 458d1292b0

View File

@@ -264,6 +264,7 @@ Toolchains KitDetectorPrivate::autoDetectToolchains()
.arg(toolchain->compilerCommand().toUserOutput())); .arg(toolchain->compilerCommand().toUserOutput()));
toolchain->setDetectionSource(m_sharedId); toolchain->setDetectionSource(m_sharedId);
} }
ToolchainManager::registerToolchains(newToolchains);
const QList<ToolchainBundle> bundles const QList<ToolchainBundle> bundles
= ToolchainBundle::collectBundles(newToolchains, ToolchainBundle::AutoRegister::On); = ToolchainBundle::collectBundles(newToolchains, ToolchainBundle::AutoRegister::On);
alreadyKnown.append(newToolchains); alreadyKnown.append(newToolchains);