--- a/QTfrontend/util/HWDataManager.cpp Thu Oct 20 13:10:24 2011 +0200
+++ b/QTfrontend/util/HWDataManager.cpp Thu Oct 20 23:25:16 2011 +0200
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
+#include <QMap>
#include <QStringList>
#include "hwconsts.h"
@@ -60,9 +61,16 @@
if (tmpDir.cd(subDirectory))
result.append(tmpDir.entryList(nameFilters, filters));
- result.sort();
result.removeDuplicates();
+ // sort case-insensitive
+ QMap<QString, QString> sortedFileNames;
+ foreach ( QString fn, result)
+ {
+ sortedFileNames.insert(fn.toLower(), fn);
+ }
+ result = sortedFileNames.values();
+
return result;
}