summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2009-05-29 08:38:30 +1000
committerLorn Potter <lorn.potter@nokia.com>2009-05-29 08:38:30 +1000
commitb390e56d676cd0a838e4b59b51b431535f760bb0 (patch)
treef1b76e65320468d613347046b5d7bc8c81cbad87 /src
parent55e7f65533b25cf57eba815bce79d29de98def9f (diff)
downloadqt-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.cpp4
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);