forked from qt-creator/qt-creator
QmlDesigner: Fix crash
Change-Id: Ic36fb5b01607bec9023ce61c6b8cdf5eae952b7f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -455,6 +455,9 @@ int ToolBarBackend::currentKit() const
|
||||
|
||||
bool ToolBarBackend::isQt6() const
|
||||
{
|
||||
if (!ProjectExplorer::SessionManager::startupTarget())
|
||||
return false;
|
||||
|
||||
const QmlProjectManager::QmlBuildSystem *buildSystem = qobject_cast<QmlProjectManager::QmlBuildSystem *>(
|
||||
ProjectExplorer::SessionManager::startupTarget()->buildSystem());
|
||||
QTC_ASSERT(buildSystem, return false);
|
||||
|
Reference in New Issue
Block a user