Fixes: don't timeout trying to run git when git cannot be found.

Task:     <task number>
Details:  <additional information>
This commit is contained in:
Lorn Potter
2009-05-29 08:38:30 +10:00
parent 55e7f65533
commit b390e56d67

View File

@@ -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);