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
3b8dd5e5
Commit
3b8dd5e5
authored
Oct 04, 2022
by
Ahmad Samir
Browse files
LSPPlugin: don't show a close button on Diagnostics tab
This matches reality, as that tab can't be closed anyway.
parent
64ae530e
Pipeline
#242275
passed with stage
in 18 minutes and 6 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
3b8dd5e5
...
...
@@ -976,6 +976,9 @@ public:
if
(
m_diagnostics
->
isChecked
()
&&
m_diagnosticsTreeOwn
)
{
m_diagnosticsTreeOwn
.
take
();
m_tabWidget
->
insertTab
(
0
,
m_diagnosticsTree
,
i18nc
(
"@title:tab"
,
"Diagnostics"
));
// Hide close button
m_tabWidget
->
tabBar
()
->
setTabButton
(
0
,
QTabBar
::
LeftSide
,
nullptr
);
m_tabWidget
->
tabBar
()
->
setTabButton
(
0
,
QTabBar
::
RightSide
,
nullptr
);
}
else
if
(
!
m_diagnostics
->
isChecked
()
&&
!
m_diagnosticsTreeOwn
)
{
m_diagnosticsTreeOwn
.
reset
(
m_diagnosticsTree
);
m_tabWidget
->
removeTab
(
diagnosticsIndex
);
...
...
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