Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
37a053e1
Commit
37a053e1
authored
Sep 17, 2022
by
Christoph Cullmann
🍨
Committed by
Eric Armbruster
Sep 19, 2022
Browse files
avoid more view creations
parent
ad7be841
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewmanager.cpp
View file @
37a053e1
...
...
@@ -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
())
{
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment