diff options
| author | Peter Penz <[email protected]> | 2009-06-20 20:48:27 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-06-20 20:48:27 +0000 |
| commit | 356c81cbf872febaf0cccb7438ccecaec0788f77 (patch) | |
| tree | a947e97da3fa406cfff900982f659aca940d0ea8 /src | |
| parent | 6862c3a617792bd04e3396b6afdb5df2199a67b2 (diff) | |
Disable additional properties per default as discussed with Sebastian Trüg.
svn path=/trunk/KDE/kdebase/apps/; revision=984493
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/information/informationpanel.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 1fa5565d7..a49d85169 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -672,14 +672,20 @@ void InformationPanel::initMetaInfoSettings(KConfigGroup& group) if (!group.readEntry("initialized", false)) { // The resource file is read the first time. Assure // that some meta information is disabled per default. - group.writeEntry("fileExtension", false); - group.writeEntry("url", false); - group.writeEntry("sourceModified", false); - group.writeEntry("parentUrl", false); - group.writeEntry("size", false); - group.writeEntry("mime type", false); - group.writeEntry("depth", false); - group.writeEntry("name", false); + + static const char* disabledProperties[] = { + "asText", "contentSize", "depth", "fileExtension", + "fileName", "fileSize", "isPartOf", "mimetype", "name", + "parentUrl", "plainTextContent", "sourceModified", + "size", "url", + 0 // mandatory last entry + }; + + int i = 0; + while (disabledProperties[i] != 0) { + group.writeEntry(disabledProperties[i], false); + ++i; + } // mark the group as initialized group.writeEntry("initialized", true); |
