Commit 811abd94 authored by Tomaz  Canabrava's avatar Tomaz Canabrava

Do not crash when closing the last document

parent e4fd93ed
......@@ -298,6 +298,10 @@ bool KateViewSpace::showView(KTextEditor::Document *document)
void KateViewSpace::changeView(int idx)
{
if (idx == -1) {
return;
}
KTextEditor::Document *doc = m_tabBar->tabDocument(idx);
Q_ASSERT(doc);
......
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