Fixes #2002: Companion audio tracks not alphabetically sorted

This commit is contained in:
Damjan Adamic
2015-02-28 20:48:44 +01:00
parent 92ceaa948c
commit 471f68beb9
3 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -665,7 +665,10 @@ void CustomFunctionsPanel::populateFuncParamArmTCB(QComboBox *b, char * value, c
bool added = false;
QString currentvalue(value);
foreach (QString entry, paramsList) {
// Convert set into list and sort it alphabetically case insensitive
QStringList list = QStringList::fromSet(paramsList);
qSort(list.begin(), list.end(), caseInsensitiveLessThan);
foreach (QString entry, list) {
b->addItem(entry);
if (entry==currentvalue) {
b->setCurrentIndex(b->count()-1);