Commit e9e80488 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Win: Avoid long creator startup times with '\' in PATH



Task-number: QTCREATORBUG-6501
Change-Id: Idfe050486db2d486e895bf6670cad3084871c44a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 10478246
...@@ -249,8 +249,11 @@ QString Environment::searchInPath(const QStringList &executables, ...@@ -249,8 +249,11 @@ QString Environment::searchInPath(const QStringList &executables,
if (exec.indexOf(slash) != -1) if (exec.indexOf(slash) != -1)
continue; continue;
foreach (const QString &p, path()) { foreach (const QString &p, path()) {
QString fp = p; QString fp = QDir::fromNativeSeparators(p);
fp += slash; // Avoid turing / into // on windows which triggers windows to check
// for network drives!
if (!fp.endsWith(slash))
fp += slash;
fp += exec; fp += exec;
const QFileInfo fi(fp); const QFileInfo fi(fp);
if (fi.exists() && fi.isExecutable() && !fi.isDir()) if (fi.exists() && fi.isExecutable() && !fi.isDir())
......
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