From d676f93b5f3a7481fc0588f087bef418879e6f78 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Oct 2014 14:50:07 +0900 Subject: Added backend logic for allowing the user to manually update the Documentation Plugin lists. GUI part still to be done. In the process, fixed some bugs related to deallocation and reinitialization of documentation catalogs and project catalogs. This relates to bug 1859. Signed-off-by: Michele Calgaro --- parts/documentation/plugins/devhelp/docdevhelpplugin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'parts/documentation/plugins/devhelp/docdevhelpplugin.cpp') diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp index 5bdfa618..2710fe25 100644 --- a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp +++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp @@ -161,6 +161,14 @@ bool DocDevHelpPlugin::needRefreshIndex(DocumentationCatalogItem* item) void DocDevHelpPlugin::autoSetupPlugin() { + // Clear groups, to allow for re-autosetup calls + config->deleteGroup("Index"); + config->deleteGroup("Index Settings"); + config->deleteGroup("Locations"); + config->deleteGroup("Search Settings"); + config->deleteGroup("TOC Settings"); + config->sync(); + TQValueStack scanStack; pushToScanStack(scanStack, getenv("DEVHELP_SEARCH_PATH")); @@ -214,6 +222,8 @@ void DocDevHelpPlugin::autoSetupPlugin() { scanDevHelpDir(*it); } + + config->sync(); } void DocDevHelpPlugin::scanDevHelpDir(const TQString &path) -- cgit v1.2.3