From 3bfebea9813a4d0a6e90ea18ff8d0756ae7a1f27 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 2 Nov 2022 15:06:36 +0100 Subject: [PATCH] LocatorWidget: Don't leak m_centeredPopupAction Amends d3354d1999923fe1711286b19d94420fb8769b68 Change-Id: I9cd308c83300928e8dafade291ee4559f885ab5f Reviewed-by: Eike Ziller --- src/plugins/coreplugin/locator/locatorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/locator/locatorwidget.cpp b/src/plugins/coreplugin/locator/locatorwidget.cpp index 08835179fac..6b0cec28da9 100644 --- a/src/plugins/coreplugin/locator/locatorwidget.cpp +++ b/src/plugins/coreplugin/locator/locatorwidget.cpp @@ -561,7 +561,7 @@ bool CompletionList::eventFilter(QObject *watched, QEvent *event) LocatorWidget::LocatorWidget(Locator *locator) : m_locatorModel(new LocatorModel(this)) , m_filterMenu(new QMenu(this)) - , m_centeredPopupAction(new QAction(tr("Open as Centered Popup"))) + , m_centeredPopupAction(new QAction(tr("Open as Centered Popup"), this)) , m_refreshAction(new QAction(tr("Refresh"), this)) , m_configureAction(new QAction(ICore::msgShowOptionsDialog(), this)) , m_fileLineEdit(new Utils::FancyLineEdit)