Commit 0b8d346a authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

quick fix crash for startup outside of git or with git issues

parent 9ecbf279
......@@ -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);
......
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