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