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
4f9493e3
Commit
4f9493e3
authored
Sep 26, 2022
by
Christoph Cullmann
🍨
Browse files
fix empty viewspace detection for close all documents
parent
63f1beef
Pipeline
#237163
failed with stage
in 13 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewspace.cpp
View file @
4f9493e3
...
...
@@ -384,6 +384,18 @@ void KateViewSpace::removeView(KTextEditor::View *v)
m_viewManager
->
activateView
(
m_tabBar
->
tabDocument
(
idx
));
}
}
// Did we just loose our last doc?
// Send a delayed signal. Delay is important as we want to kill
// the viewspace after the view transfer was done
if
(
m_tabBar
->
count
()
==
0
&&
m_registeredDocuments
.
empty
())
{
QMetaObject
::
invokeMethod
(
this
,
[
this
]
{
Q_EMIT
viewSpaceEmptied
(
this
);
},
Qt
::
QueuedConnection
);
}
}
bool
KateViewSpace
::
showView
(
KTextEditor
::
Document
*
document
)
...
...
@@ -564,13 +576,6 @@ void KateViewSpace::closeDocument(KTextEditor::Document *doc)
documentDestroyed
(
doc
);
}
}
/**
* if this was the last doc, let viewManager know we are empty
*/
if
(
m_registeredDocuments
.
isEmpty
()
&&
m_tabBar
->
count
()
==
0
)
{
Q_EMIT
viewSpaceEmptied
(
this
);
}
}
bool
KateViewSpace
::
acceptsDroppedTab
(
const
QMimeData
*
md
)
...
...
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