Fix that run configurations lost their executable

Prevent QmlDesignerProjectManager messing with projects in Qt Creator.

Change-Id: Ife5a9a8c3a80a9aa1b6e1c5526fb1705996b1b3e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Eike Ziller
2023-06-16 13:03:02 +02:00
parent fc236d4534
commit 1df36cac5a

View File

@@ -514,7 +514,7 @@ void QmlDesignerProjectManager::fileListChanged()
void QmlDesignerProjectManager::activeTargetChanged(ProjectExplorer::Target *target) void QmlDesignerProjectManager::activeTargetChanged(ProjectExplorer::Target *target)
{ {
if (!m_projectData) if (!m_projectData || !m_projectData->projectStorageData)
return; return;
QObject::disconnect(m_projectData->activeTarget, nullptr, nullptr, nullptr); QObject::disconnect(m_projectData->activeTarget, nullptr, nullptr, nullptr);