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
commit89bbe4a0a87d52f8df18c8fd52c78380efab104f (patch)
tree288b5cae7c2dcaefbbf57ff3b74ef67d99824a70
parent824bda1603222f547f2eb4b37ebf8635fa54b56d (diff)
downloadscintilla-mirror-89bbe4a0a87d52f8df18c8fd52c78380efab104f.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()