Commit 268f9633 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

avoid error for non-git users

parent 00a29743
......@@ -407,13 +407,14 @@ void GitWidget::opencommitChangesDialog()
}
}
void GitWidget::gitStatusReady(int exit, QProcess::ExitStatus)
void GitWidget::gitStatusReady(int exit, QProcess::ExitStatus status)
{
// sever connection
disconnect(&git, &QProcess::finished, nullptr, nullptr);
if (exit > 0) {
sendMessage(i18n("Failed to get git-status. Error: %1", QString::fromUtf8(git.readAllStandardError())), true);
if (status != QProcess::NormalExit || exit != 0) {
// we don't want to disturb non-git users
// sendMessage(i18n("Failed to get git-status. Error: %1", QString::fromUtf8(git.readAllStandardError())), true);
return;
}
......
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