Commit fd6201e3 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

git: Don't report error if git not found

parent e764db5b
......@@ -307,8 +307,9 @@ QProcess *GitWidget::gitp()
auto git = new QProcess(this);
connect(git, &QProcess::errorOccurred, this, [this, git](QProcess::ProcessError) {
sendMessage(git->errorString(), true);
connect(git, &QProcess::errorOccurred, this, [this, git](QProcess::ProcessError pe) {
// git program missing is not an error
sendMessage(git->errorString(), pe != QProcess::FailedToStart);
return git;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment