From a95a77bcfc2e7011a32549d4e6eea9d54294496b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 24 Nov 2021 09:51:21 +0100 Subject: [PATCH] InfoBar: Do not suppress info bar if it is closed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before the patch, any closed infobar was suppressed until Qt Creator was restarted. With this patch the infobar will just be closed, as naively expected. To suppress any infobar you have to click "Do not show again". Task-number: QTCREATORBUG-26605 Change-Id: I29645e853119286f507cba82c228f372dd80fa64 Reviewed-by: Alessandro Portale Reviewed-by: Kimmo Leppälä Reviewed-by: hjk --- src/libs/utils/infobar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/infobar.cpp b/src/libs/utils/infobar.cpp index 230473b31bb..f481113b4eb 100644 --- a/src/libs/utils/infobar.cpp +++ b/src/libs/utils/infobar.cpp @@ -344,7 +344,7 @@ void InfoBarDisplay::update() if (info.m_cancelButtonCallBack) connect(infoWidgetCloseButton, &QAbstractButton::clicked, info.m_cancelButtonCallBack); connect(infoWidgetCloseButton, &QAbstractButton::clicked, this, [this, id] { - m_infoBar->suppressInfo(id); + m_infoBar->removeInfo(id); }); }