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

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) {
KTextEditor::Document *doc = m_tabBar->tabDocument(idx);
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