aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-09-04 14:38:34 +1000
committerNeil <nyamatongwe@gmail.com>2013-09-04 14:38:34 +1000
commit4a8e36efc8867aa986463234047b0ba4770d6cf2 (patch)
tree80c18eb5f07826020924361d6d75eb595fea0992
parent86af455e71ba0cc42e48ca712c3617da3f11c69d (diff)
downloadscintilla-mirror-4a8e36efc8867aa986463234047b0ba4770d6cf2.tar.gz
Turn off idle events on destruction.
From John Ehresman.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp1
2 files changed, 4 insertions, 0 deletions
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.
</li>
+ <li>
+ On Qt, turn off idle events on destruction to prevent repeatedly calling idle.
+ </li>
</ul>
<h3>
<a href="http://prdownloads.sourceforge.net/scintilla/scite335.zip?download">Release 3.3.5</a>
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()