Commit 37a053e1 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨 Committed by Eric Armbruster
Browse files

avoid more view creations

parent ad7be841
......@@ -444,14 +444,7 @@ void KateViewManager::documentsDeleted(const QList<KTextEditor::Document *> &)
m_blockViewCreationAndActivation = false;
/**
* try to have active view around!
*/
if (!activeView() && !KateApp::self()->documentManager()->documentList().empty()) {
createView(KateApp::self()->documentManager()->documentList().back());
}
/**
* if we have one now, show them in all viewspaces that got empty!
* if we have some active view, show them in all viewspaces that got empty!
*/
if (KTextEditor::View *const newActiveView = activeView()) {
/**
......
Supports Markdown
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