summaryrefslogtreecommitdiffstats
path: root/parts/documentation/docprojectconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/docprojectconfigwidget.cpp')
-rw-r--r--parts/documentation/docprojectconfigwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/parts/documentation/docprojectconfigwidget.cpp b/parts/documentation/docprojectconfigwidget.cpp
index a37ad5cb..205bb4f5 100644
--- a/parts/documentation/docprojectconfigwidget.cpp
+++ b/parts/documentation/docprojectconfigwidget.cpp
@@ -138,6 +138,8 @@ void DocProjectConfigWidget::accept()
m_part->m_projectDocumentationPlugin = 0;
}
m_part->m_projectDocumentationPlugin = plugin->projectDocumentationPlugin(DocumentationPlugin::APIDocs);
+ if (!m_part->m_projectDocumentationPlugin) // In case the plugin does not support APIDocs project documentation
+ return;
m_part->m_projectDocumentationPlugin->init(m_part->m_widget->contents(), m_part->m_widget->index(), catalogURL->url());
m_part->saveProjectDocumentationInfo();