From 89bbe4a0a87d52f8df18c8fd52c78380efab104f Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 4 Sep 2013 14:38:34 +1000 Subject: Turn off idle events on destruction. From John Ehresman. --- doc/ScintillaHistory.html | 3 +++ qt/ScintillaEditBase/ScintillaQt.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 73f91ea5a..476241297 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -453,6 +453,9 @@ Can be used to treat all substyles of a style equivalent to that style. A StyleFromSubStyle method was added to ILexerWithSubStyles so each lexer can implement this. +
  • + On Qt, turn off idle events on destruction to prevent repeatedly calling idle. +
  • Release 3.3.5 diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp index 009654df2..d79fe3a86 100644 --- a/qt/ScintillaEditBase/ScintillaQt.cpp +++ b/qt/ScintillaEditBase/ScintillaQt.cpp @@ -49,6 +49,7 @@ ScintillaQt::ScintillaQt(QAbstractScrollArea *parent) ScintillaQt::~ScintillaQt() { SetTicking(false); + SetIdle(false); } void ScintillaQt::tick() -- cgit v1.2.3