Commit c6849c56 authored by Tim Jenssen's avatar Tim Jenssen

Debugger: fix crash in updateUiForTarget

 - it happens while removing the only existing kit

Change-Id: Ifc2e9eae2836b496f9f696ff91e2999dc1904800
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent f724dd45
......@@ -934,7 +934,7 @@ public:
QHash<DebuggerLanguage, Core::Context> m_contextsForLanguage;
Project *m_previousProject = 0;
Target *m_previousTarget = 0;
QPointer<Target> m_previousTarget;
QPointer<RunConfiguration> m_previousRunConfiguration;
Id m_previousMode;
......@@ -3212,7 +3212,7 @@ void DebuggerPluginPrivate::updateUiForProject(Project *project)
void DebuggerPluginPrivate::updateUiForTarget(Target *target)
{
if (m_previousTarget) {
disconnect(m_previousTarget, &Target::activeRunConfigurationChanged,
disconnect(m_previousTarget.data(), &Target::activeRunConfigurationChanged,
this, &DebuggerPluginPrivate::updateUiForRunConfiguration);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment