Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
268f9633
Commit
268f9633
authored
Feb 21, 2021
by
Christoph Cullmann
🐮
Browse files
avoid error for non-git users
parent
00a29743
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
268f9633
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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