Skip to content
Commit 124e3588 authored by Simeon Bird's avatar Simeon Bird
Browse files

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
BUG: 303831
BUG: 264779
FIXED-IN: 4.9.3
parent 971b5081
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment