diff options
author | Johannes Huber <johu@gentoo.org> | 2012-03-23 09:06:46 +0000 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2012-03-23 09:06:46 +0000 |
commit | e3729cf82561015b6e3c4c74a920ff7f6f3df720 (patch) | |
tree | 8e1625ed43ee5e515359967c79f2ea9bf02f12dd /kde-base/kdelibs/files | |
parent | Mask kde-misc/kgtk because of brokenness (diff) | |
download | gentoo-2-e3729cf82561015b6e3c4c74a920ff7f6f3df720.tar.gz gentoo-2-e3729cf82561015b6e3c4c74a920ff7f6f3df720.tar.bz2 gentoo-2-e3729cf82561015b6e3c4c74a920ff7f6f3df720.zip |
Revision bump adds upstream patch, which fixes crashes in kmail with sonnet highlighter. Fixes bug #407709.
(Portage version: 2.2.0_alpha93/cvs/Linux x86_64)
Diffstat (limited to 'kde-base/kdelibs/files')
-rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.8.1-sonnet-highlighter.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-4.8.1-sonnet-highlighter.patch b/kde-base/kdelibs/files/kdelibs-4.8.1-sonnet-highlighter.patch new file mode 100644 index 000000000000..92a1f45c61cb --- /dev/null +++ b/kde-base/kdelibs/files/kdelibs-4.8.1-sonnet-highlighter.patch @@ -0,0 +1,40 @@ +commit 20f73c2150bcd2220fe3604c2ec251b4026a3891 +Author: Montel Laurent <montel@kde.org> +Date: Mon Mar 19 12:30:49 2012 +0100 + + Fix Bug 295615 - kmail crashes trying to edit subject/message body with + + some dictionary languages set in identity properties + + Patch from Matt Whitlock from https://bugs.gentoo.org/show_bug.cgi?id=407709 + it's right timer can be uninitialize when we change language => it will + crash + + FIXED-IN: 4.8.2 + BUG: 295615 + +diff --git a/kdeui/sonnet/highlighter.cpp b/kdeui/sonnet/highlighter.cpp +index 05f7ed1..b10310a 100644 +--- a/kdeui/sonnet/highlighter.cpp ++++ b/kdeui/sonnet/highlighter.cpp +@@ -108,6 +108,10 @@ Highlighter::Highlighter(QTextEdit *textEdit, + + d->dict = new Sonnet::Speller(); + d->spellCheckerFound = d->dict->isValid(); ++ d->rehighlightRequest = new QTimer(this); ++ connect( d->rehighlightRequest, SIGNAL(timeout()), ++ this, SLOT(slotRehighlight())); ++ + if(!d->spellCheckerFound) + return; + +@@ -121,9 +125,6 @@ Highlighter::Highlighter(QTextEdit *textEdit, + for ( QStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) { + d->dict->addToSession( *it ); + } +- d->rehighlightRequest = new QTimer(this); +- connect( d->rehighlightRequest, SIGNAL(timeout()), +- this, SLOT(slotRehighlight())); + d->completeRehighlightRequired = true; + d->rehighlightRequest->setInterval(0); + d->rehighlightRequest->setSingleShot(true); |