Bug 401473 - Impossible to remove the first language in the list
Summary: Impossible to remove the first language in the list
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_language (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-27 15:07 UTC by Patrick Silva
Modified: 2019-01-02 08:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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