Bug 401473

Summary: Impossible to remove the first language in the list
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_languageAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: lueck
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2018-11-27 15:07:02 UTC
when two or more languages are listed in languages kcm, it's impossible to remove the first one in the list.

STEPS TO REPRODUCE
1. open system settings > regional settings > language
2. cick "Add languages..." button
3. select two languages and click "Add" button
4. click "-" button related to the first language

OBSERVED RESULT
nathing happens

EXPECTED RESULT
the language should be removed

SOFTWARE/OS VERSIONS
KDE neon Developer Edition
KDE Plasma: 5.14.80
KDE Frameworks: 5.53.0
Qt: 5.11.2
Comment 1 Eike Hein 2019-01-02 08:30:54 UTC
Git commit 7fca6ede19af7ae86ccc69b6a741d6188a22732e by Eike Hein.
Committed on 02/01/2019 at 08:30.
Pushed by hein into branch 'Plasma/5.14'.

Fix removing first item in languages list

Summary:
Instead, we want to disallow removing when the count drops to 1.

Reviewers: #plasma, davidedmundson, broulik

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

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

M  +6    -2    kcms/translations/package/contents/ui/main.qml
M  +1    -1    kcms/translations/translationsmodel.cpp

https://commits.kde.org/plasma-desktop/7fca6ede19af7ae86ccc69b6a741d6188a22732e