Fix of action leak in CDockWidget, that apears when deleting DockWidget after tab closing

This commit is contained in:
JakErdy 2019-07-14 01:35:20 +07:00
parent 64231d037d
commit 97f02d39e6

View File

@ -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)));