diff --git a/src/plugins/clangtools/clangtool.cpp b/src/plugins/clangtools/clangtool.cpp index 40c79d858a0..de78f285cf5 100644 --- a/src/plugins/clangtools/clangtool.cpp +++ b/src/plugins/clangtools/clangtool.cpp @@ -174,7 +174,7 @@ public: m_error->setVisible(!text.isEmpty()); m_error->setText(text); m_error->setType(type == Warning ? InfoLabel::Warning : InfoLabel::Error); - m_error->disconnect(); + disconnect(m_error, &QLabel::linkActivated, this, nullptr); if (linkAction) connect(m_error, &QLabel::linkActivated, this, linkAction); evaluateVisibility();