summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-10-31 14:03:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-10-31 14:03:41 +0900
commit046f16020aebd85a0a75db1846bd4fb2938813ac (patch)
treeef61bef04f8d7a6287915ebbc97e64037d74317d
parentb9688b905acbb256fb56b18f8006e5bcbb8117f4 (diff)
downloadtdevelop-046f16020aebd85a0a75db1846bd4fb2938813ac.tar.gz
tdevelop-046f16020aebd85a0a75db1846bd4fb2938813ac.zip
Fixed saving configuration after manual removal of an entry from the Documentation Config list.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
index 636731f9..0282d82a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
@@ -544,11 +544,17 @@ void DocumentationPlugin::loadCatalogConfiguration(TDEListView *configurationVie
void DocumentationPlugin::saveCatalogConfiguration(TDEListView *configurationView)
{
- config->setGroup("Locations");
-
+
for (TQStringList::const_iterator it = deletedConfigurationItems.constBegin();
it != deletedConfigurationItems.constEnd(); ++it)
{
+ config->setGroup("Locations");
+ config->deleteEntry(*it);
+ config->setGroup("TOC Settings");
+ config->deleteEntry(*it);
+ config->setGroup("Index Settings");
+ config->deleteEntry(*it);
+ config->setGroup("Search Settings");
config->deleteEntry(*it);
}