ClangTools: Fix a disconnect warning

The warning was introduced here:
a79d5b8d0856a8f6c4de56a8d982c84ea20905a6

Change-Id: I2a46f137232e5e2eb24ce48283aec71c08c27f4c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2025-04-03 10:26:39 +02:00
parent 974a6896ce
commit bf6a98cc7c

View File

@@ -174,7 +174,7 @@ public:
m_error->setVisible(!text.isEmpty()); m_error->setVisible(!text.isEmpty());
m_error->setText(text); m_error->setText(text);
m_error->setType(type == Warning ? InfoLabel::Warning : InfoLabel::Error); m_error->setType(type == Warning ? InfoLabel::Warning : InfoLabel::Error);
m_error->disconnect(); disconnect(m_error, &QLabel::linkActivated, this, nullptr);
if (linkAction) if (linkAction)
connect(m_error, &QLabel::linkActivated, this, linkAction); connect(m_error, &QLabel::linkActivated, this, linkAction);
evaluateVisibility(); evaluateVisibility();