Commit 3b8dd5e5 authored by Ahmad Samir's avatar 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
......@@ -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);
......
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