Commit 84e61ebc authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Don't show weired directory separators.

parent c4ede726
......@@ -30,6 +30,7 @@
#include "projectwizardpage.h"
#include "ui_projectwizardpage.h"
#include <QtCore/QDir>
#include <QtCore/QTextStream>
using namespace ProjectExplorer;
......@@ -111,12 +112,12 @@ void ProjectWizardPage::setFilesDisplay(const QString &commonPath, const QString
<< "<pre>";
if (commonPath.isEmpty()) {
foreach(const QString &f, files)
str << f << '\n';
str << QDir::toNativeSeparators(f) << '\n';
} else {
str << commonPath << ":\n\n";
str << QDir::toNativeSeparators(commonPath) << ":\n\n";
const int prefixSize = commonPath.size() + 1;
foreach(const QString &f, files)
str << f.right(f.size() - prefixSize) << '\n';
str << QDir::toNativeSeparators(f.right(f.size() - prefixSize)) << '\n';
}
str << "</pre>";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment