Bug 340449 - Sorting of format options is messed up.
Summary: Sorting of format options is messed up.
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_formats (other bugs)
Version First Reported In: 5.1.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 07:44 UTC by Vit Pelcak
Modified: 2014-10-31 15:53 UTC (History)
1 user (show)

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


Attachments
Screenshot (54.83 KB, image/png)
2014-10-29 07:46 UTC, Vit Pelcak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2014-10-29 07:44:49 UTC
See attached screenshot. It is rather challenging to find propper one.

Reproducible: Always
Comment 1 Vit Pelcak 2014-10-29 07:46:36 UTC
Created attachment 89354 [details]
Screenshot
Comment 2 Burkhard Lück 2014-10-29 11:59:35 UTC
This one liner makes the items sorted here:

kdeframeworks@parodia:~/src/workspace/plasma-desktop(trunk)$ git diff kcms/formats/
diff --git a/kcms/formats/kcmformats.cpp b/kcms/formats/kcmformats.cpp
index 3224a65..2ebae0c 100644
--- a/kcms/formats/kcmformats.cpp
+++ b/kcms/formats/kcmformats.cpp
@@ -91,6 +91,7 @@ void KCMFormats::initCombo(QComboBox *combo, const QList<QLocale> & allLocales)
     foreach(const QLocale & l, allLocales) {
         addLocaleToCombo(combo, l);
     }
+    combo->model()->sort(0); 
 }
 
 void KCMFormats::connectCombo(QComboBox *combo)
Comment 3 Burkhard Lück 2014-10-31 15:53:48 UTC
Git commit 697a83086a20d2cf76b7afd92e774aa38051e418 by Burkhard Lück.
Committed on 31/10/2014 at 15:49.
Pushed by lueck into branch 'Plasma/5.1'.

Sort Region items in combobox in KCM Formats
REVIEW:120916

M  +1    -0    kcms/formats/kcmformats.cpp

http://commits.kde.org/plasma-desktop/697a83086a20d2cf76b7afd92e774aa38051e418