From 735898b46b8d9ae681e1cf6d67fd7754e1700a0a Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 9 Mar 2012 12:37:03 +0100 Subject: [PATCH] Wizards: Platform specific file sorting on Windows via Utils::FileName Change-Id: I519f7271bfce57028282f4c6ca6ff3f1ea4671c0 Reviewed-by: Nikolai Kosjar --- src/plugins/projectexplorer/projectwizardpage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectwizardpage.cpp b/src/plugins/projectexplorer/projectwizardpage.cpp index 913e21d7ddb..925b141f945 100644 --- a/src/plugins/projectexplorer/projectwizardpage.cpp +++ b/src/plugins/projectexplorer/projectwizardpage.cpp @@ -34,6 +34,7 @@ #include "ui_projectwizardpage.h" #include +#include #include #include @@ -142,7 +143,7 @@ static bool generatedFilePathLessThan(const QString &filePath1, const QString &f const bool filePath2HasDir = filePath2.contains(QLatin1Char('/')); if (filePath1HasDir == filePath2HasDir) - return filePath1 < filePath2; + return Utils::FileName::fromString(filePath1) < Utils::FileName::fromString(filePath2); else return filePath1HasDir; }