diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index e75d4860e89..1b48bad9e2b 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -342,7 +342,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error) layout->setSpacing(0); FindToolBarPlaceHolder *fth = new FindToolBarPlaceHolder(m_centralWidget); fth->setObjectName(QLatin1String("HelpFindToolBarPlaceHolder")); - layout->addWidget(fth); + mainWidgetLayout->addWidget(fth); } HelpIndexFilter *helpIndexFilter = new HelpIndexFilter();