Handle the case if createSpeller is passed an unavailable language

Authored by ahmadsamir on Feb 15 2019, 8:03 AM.

Description

Handle the case if createSpeller is passed an unavailable language

Summary:
In Loader::createSpeller, retun early if lang isn't one of the available
languages(); otherwise a dud entry will be created for it in
dictionarycombobox.

Emit a signal when loading a dictionary fails, so that Ui parts can
display an appropriate error message informing the user about the issue,
instead of failing silently.

This is a first step to fix bug 325541.

Reviewers: sandsmark, cullmann, dhaumann

Reviewed By: cullmann

Subscribers: dhaumann, cullmann, loh.tar, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D18907

Details

Committed
cullmannFeb 15 2019, 8:03 AM
Reviewer
cullmann
Differential Revision
D18907: Handle the case if createSpeller is passed an unavailable language
Parents
R246:ea5bec817093: GIT_SILENT Upgrade KF5 version to 5.56.0.
Branches
Unknown
Tags
Unknown