Skip to content

Commit

Permalink
Fix crash when QUndoStack emits signal while destruction in process
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystryantsev committed Dec 16, 2022
1 parent 7f22526 commit d107300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qhexedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d107300

Please sign in to comment.