From 97f02d39e67eec6f6c2b24e65c0adda019a918a0 Mon Sep 17 00:00:00 2001 From: JakErdy Date: Sun, 14 Jul 2019 01:35:20 +0700 Subject: [PATCH] Fix of action leak in CDockWidget, that apears when deleting DockWidget after tab closing --- src/DockWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 08c47e4..22344a6 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -214,7 +214,7 @@ CDockWidget::CDockWidget(const QString &title, QWidget *parent) : setObjectName(title); d->TabWidget = new CDockWidgetTab(this); - d->ToggleViewAction = new QAction(title, nullptr); + d->ToggleViewAction = new QAction(title, this); d->ToggleViewAction->setCheckable(true); connect(d->ToggleViewAction, SIGNAL(triggered(bool)), this, SLOT(toggleView(bool)));