Skip to content
Snippets Groups Projects
Commit 6e3cfe24 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix documentation tool view re-adding itself to dockers on restart

BUG: 385392
FIXED-IN: 5.2.0
parent 933fc0e7
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,11 @@ DocumentationController::DocumentationController(Core* core)
m_showDocumentation->setText(i18n("Show Documentation"));
m_showDocumentation->setIcon(QIcon::fromTheme(QStringLiteral("documentation")));
connect(m_showDocumentation, &QAction::triggered, this, &DocumentationController::doShowDocumentation);
// registering the tool view here so it registered before the areas are restored
// and thus also gets treated like the ones registered from plugins
// cmp. comment about tool views in CorePrivate::initialize
core->uiController()->addToolView(i18n("Documentation"), m_factory);
}
DocumentationController::~DocumentationController()
......@@ -128,9 +133,6 @@ DocumentationController::~DocumentationController()
void DocumentationController::initialize()
{
if (!(Core::self()->setupFlags() & Core::NoUi)) {
Core::self()->uiController()->addToolView(i18n("Documentation"), m_factory);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment