Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b390e56d
Commit
b390e56d
authored
May 29, 2009
by
Lorn Potter
Browse files
Fixes: don't timeout trying to run git when git cannot be found.
Task: <task number> Details: <additional information>
parent
55e7f655
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/git/gitcommand.cpp
View file @
b390e56d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment