[Bug 166029] Replace in spell dialog closes dialog

Tobias Koenig tokoe at kde.org
Tue Jul 8 18:31:45 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=166029         




------- Additional Comments From tokoe kde org  2008-07-08 18:31 -------
On Tue, Jul 08, 2008 at 03:06:53PM -0000, Tobias Koenig wrote:
Hej,

> The problem only appears if autospellchecking is enabled in KTextEdit.
> I can't see any problematic code though, maybe the Sonnect::Highlighter::eventFilter()
> handling?

A bit of investigation shows, that the culprit part is Sonnet::Filter.
Its static instance is used by both, the BackgroundChecker of the dialog
and the BackgroundChecker of the Highlighter, so the highlighters
changes the state of the global filter instance and the dialog thinks it
is already finish with checking and closes itself.

Creating a new Filter in every BackgroundEngine instance solves that
problem here.

 Zack What's the best way to fix it?

Ciao,
Tobias


More information about the Kdelibs-bugs mailing list