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
52f25484
Commit
52f25484
authored
Sep 27, 2022
by
Waqar Ahmed
Browse files
Fix closing a widget when its the only tab
parent
b2b33af7
Pipeline
#237449
passed with stage
in 11 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewmanager.cpp
View file @
52f25484
...
...
@@ -360,19 +360,18 @@ void KateViewManager::slotDocumentClose(KTextEditor::Document *document)
void
KateViewManager
::
slotDocumentClose
()
{
// no active view, do nothing
auto
view
=
activeView
();
if
(
!
view
)
{
return
;
}
auto
vs
=
activeViewSpace
();
if
(
vs
)
{
if
(
auto
vs
=
activeViewSpace
())
{
if
(
auto
w
=
vs
->
currentWidget
())
{
vs
->
closeTabWithWidget
(
w
);
return
;
}
// no active view, do nothing
auto
view
=
activeView
();
if
(
!
view
)
{
return
;
}
vs
->
closeDocument
(
view
->
document
());
}
}
...
...
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