summaryrefslogtreecommitdiffstats
path: root/parts/documentation/plugins/devhelp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-10-30 14:50:07 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-10-30 14:50:07 +0900
commitd676f93b5f3a7481fc0588f087bef418879e6f78 (patch)
tree8bcbe99d2f62e6216afa3bd9b56c99a2eb163d07 /parts/documentation/plugins/devhelp
parent565f0ae626aeff1ec26ce379abe2c3838b54cdf6 (diff)
downloadtdevelop-d676f93b5f3a7481fc0588f087bef418879e6f78.tar.gz
tdevelop-d676f93b5f3a7481fc0588f087bef418879e6f78.zip
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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'parts/documentation/plugins/devhelp')
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.cpp10
1 files changed, 10 insertions, 0 deletions
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<TQString> scanStack;
pushToScanStack(scanStack, getenv("DEVHELP_SEARCH_PATH"));
@@ -214,6 +222,8 @@ void DocDevHelpPlugin::autoSetupPlugin()
{
scanDevHelpDir(*it);
}
+
+ config->sync();
}
void DocDevHelpPlugin::scanDevHelpDir(const TQString &path)