Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
kcm5-fcitx
kcm-fcitx-workaround-for-invalid-langcode.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kcm-fcitx-workaround-for-invalid-langcode.patch of Package kcm5-fcitx
--- src/impage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/src/impage.cpp +++ b/src/impage.cpp @@ -100,6 +100,7 @@ QVariant IMPage::Private::IMModel::data( } const FcitxQtInputMethodItem& imEntry = filteredIMEntryList.at(index.row()); + QString lc; switch (role) { @@ -113,7 +114,10 @@ QVariant IMPage::Private::IMModel::data( return imEntry.langCode(); case KCategorizedSortFilterProxyModel::CategoryDisplayRole: - return QLocale(imEntry.langCode()).nativeLanguageName(); + lc = imEntry.langCode(); + if (lc.length() == 3) + lc.clear(); + return QLocale(lc).nativeLanguageName(); default: return QVariant();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor