Commit d54df037 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Don't annoy Windows users with alien dir separators

parent b13e19ef
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <QtGui/QToolBar> #include <QtGui/QToolBar>
#include <QtGui/QDesktopServices> #include <QtGui/QDesktopServices>
#include <QtCore/QDir>
#include <QtCore/QFile> #include <QtCore/QFile>
#include <QtCore/QTextStream> #include <QtCore/QTextStream>
#include <QtCore/QDebug> #include <QtCore/QDebug>
...@@ -239,7 +240,7 @@ void WelcomeMode::updateWelcomePage(const WelcomePageData &welcomePageData) ...@@ -239,7 +240,7 @@ void WelcomeMode::updateWelcomePage(const WelcomePageData &welcomePageData)
for( it = welcomePageData.projectList.constBegin(); it != end; ++it) { for( it = welcomePageData.projectList.constBegin(); it != end; ++it) {
const QFileInfo fi((*it).first); const QFileInfo fi((*it).first);
str << "<li><p><a href=\"gh-project:" << (*it).first << "\" title=\"" str << "<li><p><a href=\"gh-project:" << (*it).first << "\" title=\""
<< fi.absolutePath() << "\">" << (*it).second << "</a></p></li>\n"; << QDir::toNativeSeparators(fi.absolutePath()) << "\">" << (*it).second << "</a></p></li>\n";
} }
projectHtml.replace(QLatin1String("<!-- RECENT PROJECTS LIST -->"), projects); projectHtml.replace(QLatin1String("<!-- RECENT PROJECTS LIST -->"), projects);
} }
......
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