From 9ce51ed43abf82ffc07527441c791927a0a3adf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Thu, 28 May 2015 18:18:13 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@21 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad_widgets/qcodeedit.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qad_widgets/qcodeedit.cpp b/qad_widgets/qcodeedit.cpp index b17696a..d97b096 100644 --- a/qad_widgets/qcodeedit.cpp +++ b/qad_widgets/qcodeedit.cpp @@ -165,6 +165,13 @@ QChar QCodeEdit::pairChar(QChar c) { bool QCodeEdit::eventFilter(QObject * o, QEvent * e) { + if (e->type() == QEvent::Destroy) { + completer.removeEventFilter(this); + textCode->removeEventFilter(this); + textCode->viewport()->removeEventFilter(this); + textLines->viewport()->removeEventFilter(this); + return QWidget::eventFilter(o, e); + } if (textLines) { if (o == textLines->viewport()) { if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease ||