diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2009-05-29 08:38:30 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2009-05-29 08:38:30 +1000 |
commit | b390e56d676cd0a838e4b59b51b431535f760bb0 (patch) | |
tree | f1b76e65320468d613347046b5d7bc8c81cbad87 /src | |
parent | 55e7f65533b25cf57eba815bce79d29de98def9f (diff) | |
download | qt-creator-b390e56d676cd0a838e4b59b51b431535f760bb0.tar.gz |
Fixes: don't timeout trying to run git when git cannot be found.
Task: <task number>
Details: <additional information>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/git/gitcommand.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/git/gitcommand.cpp b/src/plugins/git/gitcommand.cpp index a4966c03a9..e3fcd8571b 100644 --- a/src/plugins/git/gitcommand.cpp +++ b/src/plugins/git/gitcommand.cpp @@ -104,6 +104,10 @@ void GitCommand::execute() if (m_jobs.empty()) return; + if(!QFileInfo(m_binaryPath).exists()){ + emit errorText(QLatin1String("Error: Git not found.")+m_binaryPath); + return; + } // For some reason QtConcurrent::run() only works on this QFuture<void> task = QtConcurrent::run(this, &GitCommand::run); const QString taskName = QLatin1String("Git ") + m_jobs.front().arguments.at(0); |