Revision 124e358...

Go back to digest for 21st October 2012

Bug Fixes in KDE Base

Simeon Bird committed changes in [kdeplasma-addons/KDE/4.9] /spellchecker:

Fix the plasma spellchecker's 'foreign language' support.
Previously this caused segfaults (even if not used) because
it called setLanguage(), which is not thread-safe, in match().

Instead, this patch constructs a new speller safely for each new
language, without deleting the old one. Old spellers are instead
deleted on the teardown() signal.

While we're at it, amend the language detection so that the user
can type natural language names (eg, 'german') and have the
spell-checker find the right language.

REVIEW: 106244

FIXED-IN: 4.9.3

File Changes

Modified 2 files
  • /spellchecker
  •   runners/spellcheck.cpp
  •   runners/spellcheck.h
2 files changed in total