Debugger: Fix crash on update debugger run configuration details

The old details widget gets deleted and a new one is created after a kit
emits the updated signal. So we need to guard the connect with this
detail widget instead of the aspect container.

Fixes: QTCREATORBUG-30706
Change-Id: I632213cd7d95c2f61b35679867d706b6c587da5a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-04-18 14:07:59 +02:00
parent 4b3abbf669
commit 68492d9dcc

View File

@@ -100,10 +100,10 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(Target *target)
};
setSummaryText();
connect(&m_cppAspect, &BaseAspect::changed, this, setSummaryText);
connect(&m_qmlAspect, &BaseAspect::changed, this, setSummaryText);
connect(&m_pythonAspect, &BaseAspect::changed, this, setSummaryText);
connect(&m_overrideStartupAspect, &BaseAspect::changed, this, setSummaryText);
connect(&m_cppAspect, &BaseAspect::changed, details, setSummaryText);
connect(&m_qmlAspect, &BaseAspect::changed, details, setSummaryText);
connect(&m_pythonAspect, &BaseAspect::changed, details, setSummaryText);
connect(&m_overrideStartupAspect, &BaseAspect::changed, details, setSummaryText);
return details;
});