r22960 by jghali - Sort language list also in user interface preferences

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 20 22:55:05 UTC 2019


Author: jghali
Date: Sat Apr 20 22:55:05 2019
New Revision: 22960

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22960
Log:
Sort language list also in user interface preferences

Modified:
    trunk/Scribus/scribus/ui/prefs_userinterface.cpp

Modified: trunk/Scribus/scribus/ui/prefs_userinterface.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22960&path=/trunk/Scribus/scribus/ui/prefs_userinterface.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_userinterface.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_userinterface.cpp	Sat Apr 20 22:55:05 2019
@@ -17,6 +17,7 @@
 #include "scribusapp.h"
 #include "scribusdoc.h"
 #include "util.h"
+#include "util_text.h"
 
 extern ScribusQApp *ScQApp;
 
@@ -36,6 +37,7 @@
 		else
 			languageList << LanguageManager::instance()->getLangFromAbbrev("en_GB");
 	}
+	qSort(languageList.begin(), languageList.end(), localeAwareLessThan);
 	languageComboBox->addItems(languageList);
 
 	// qt styles




More information about the scribus-commit mailing list