From d107300d6bc23a864a3b06e90f15c33f0e71f7ed Mon Sep 17 00:00:00 2001 From: mbystryantsev Date: Fri, 16 Dec 2022 12:40:47 +0300 Subject: [PATCH] Fix crash when QUndoStack emits signal while destruction in process --- src/qhexedit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qhexedit.cpp b/src/qhexedit.cpp index 4137192..bfd9576 100644 --- a/src/qhexedit.cpp +++ b/src/qhexedit.cpp @@ -60,6 +60,9 @@ QHexEdit::QHexEdit(QWidget *parent) : QAbstractScrollArea(parent) QHexEdit::~QHexEdit() { + // prevent sending signal on undo stack clear + // when destruction in process + disconnect(_undoStack, NULL, this, NULL); } // ********************************************************************** Properties