Debugger: Fix crash after adjusting font size

Change-Id: Ic3b415a3791968f972d2f69ec71c8012c572995d
Fixes: QTCREATORBUG-14385
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2020-04-30 08:23:12 +02:00
parent 0bd53651d4
commit 09b69b274d

View File

@@ -386,6 +386,10 @@ public:
// This triggers activity in the EngineManager which // This triggers activity in the EngineManager which
// recognizes the rampdown by the m_perpective == nullptr above. // recognizes the rampdown by the m_perpective == nullptr above.
perspective->destroy(); perspective->destroy();
// disconnect the follow font size connection
TextEditorSettings::instance()->disconnect(this);
delete perspective; delete perspective;
} }