Commit dac9f442 authored by Christoph Cullmann's avatar Christoph Cullmann

avoid empty view spaces

parent 0be717bc
......@@ -372,6 +372,15 @@ void KateViewManager::documentCreated(KTextEditor::Document *doc)
if (!activeView()) {
activateView(doc);
}
/**
* check if we have any empty viewspaces and give them a view
*/
Q_FOREACH(KateViewSpace * vs, m_viewSpaceList) {
if (!vs->currentView()) {
createView(activeView()->document(), vs);
}
}
}
void KateViewManager::aboutToDeleteDocuments(const QList<KTextEditor::Document *> &)
......
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