Merge pull request #40 from kozodeevv/Fix_CDockWidget_Action_Leak

Fix of action leak in CDockWidget
This commit is contained in:
githubuser0xFFFF 2019-07-15 09:58:05 +02:00 committed by GitHub
commit bf27207dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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