forked from qt-creator/qt-creator
Core: Use FilePaths in IVersionControl::additionalToolsPath()
Change-Id: I3c7d03b8695152f0830e809ce7a0709f48d8178b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -283,7 +283,7 @@ public:
|
||||
|
||||
RepoUrl getRepoUrl(const QString &location) const override;
|
||||
|
||||
QStringList additionalToolsPath() const final;
|
||||
Utils::FilePaths additionalToolsPath() const final;
|
||||
|
||||
bool isCommitEditorOpen() const;
|
||||
void startCommit(CommitType commitType = SimpleCommit);
|
||||
@@ -1934,10 +1934,10 @@ GitPluginPrivate::RepoUrl GitPluginPrivate::getRepoUrl(const QString &location)
|
||||
return GitRemote(location);
|
||||
}
|
||||
|
||||
QStringList GitPluginPrivate::additionalToolsPath() const
|
||||
FilePaths GitPluginPrivate::additionalToolsPath() const
|
||||
{
|
||||
QStringList res = m_gitClient.settings().searchPathList();
|
||||
const QString binaryPath = m_gitClient.gitBinDirectory().toString();
|
||||
FilePaths res = m_gitClient.settings().searchPathList();
|
||||
const FilePath binaryPath = m_gitClient.gitBinDirectory();
|
||||
if (!binaryPath.isEmpty() && !res.contains(binaryPath))
|
||||
res << binaryPath;
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user