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
0b8d346a
Commit
0b8d346a
authored
Feb 16, 2021
by
Christoph Cullmann
🐮
Browse files
quick fix crash for startup outside of git or with git issues
parent
9ecbf279
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
0b8d346a
...
...
@@ -108,6 +108,11 @@ void GitWidget::initGitExe()
void
GitWidget
::
sendMessage
(
const
QString
&
message
,
bool
warn
)
{
// quickfix crash on startup
if
(
!
m_mainWin
->
activeView
())
{
return
;
}
KTextEditor
::
Message
*
msg
=
new
KTextEditor
::
Message
(
message
,
warn
?
KTextEditor
::
Message
::
Warning
:
KTextEditor
::
Message
::
Positive
);
msg
->
setPosition
(
KTextEditor
::
Message
::
TopInView
);
msg
->
setAutoHide
(
warn
?
5000
:
3000
);
...
...
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