forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user