From 58ff844f4645b4a316098457f5070e5d497b5baf Mon Sep 17 00:00:00 2001 From: Christoph Hart Date: Mon, 18 Dec 2023 22:00:13 +0100 Subject: [PATCH] - fix crash when closing markdown editor tab --- hi_tools/mcl_editor/code_editor/FullEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hi_tools/mcl_editor/code_editor/FullEditor.cpp b/hi_tools/mcl_editor/code_editor/FullEditor.cpp index a10a63e9ef..e64e354359 100644 --- a/hi_tools/mcl_editor/code_editor/FullEditor.cpp +++ b/hi_tools/mcl_editor/code_editor/FullEditor.cpp @@ -312,6 +312,7 @@ MarkdownPreviewSyncer::MarkdownPreviewSyncer(mcl::FullEditor& editor, MarkdownPr MarkdownPreviewSyncer::~MarkdownPreviewSyncer() { + setEnableScrollbarListening(false); e.editor.getTextDocument().getCodeDocument().removeListener(this); }