forked from qt-creator/qt-creator
Vcs: Use a StringAspect again for settings().path()
This holds a path list, i.e. possibly several directories, separated by ';' or ':'. PathChooser can't handle that. Long term this could be something more sophisticate, but for now it's more a "string" than one FilePath. Change-Id: I6665c131e698db3afd268d6ab9bcf3d76a7c7289 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -160,7 +160,7 @@ FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
if (tryResolve) {
|
||||
resolvedBinPath = binaryPath();
|
||||
if (!resolvedBinPath.isAbsolutePath())
|
||||
resolvedBinPath = resolvedBinPath.searchInPath({path()}, FilePath::PrependToPath);
|
||||
resolvedBinPath = resolvedBinPath.searchInPath(searchPathList(), FilePath::PrependToPath);
|
||||
tryResolve = false;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ FilePath GitSettings::gitExecutable(bool *ok, QString *errorMessage) const
|
||||
*ok = false;
|
||||
if (errorMessage)
|
||||
*errorMessage = Tr::tr("The binary \"%1\" could not be located in the path \"%2\"")
|
||||
.arg(binaryPath().toUserOutput(), path().toUserOutput());
|
||||
.arg(binaryPath().toUserOutput(), path());
|
||||
}
|
||||
return resolvedBinPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user