#include "dolphin_generalsettings.h"
#include "dolphin_versioncontrolsettings.h"
+#include <kabstractfileitemactionplugin.h>
#include <KConfig>
#include <KConfigGroup>
#include <KDesktopFile>
foreach (const KSharedPtr<KService>& service, pluginServices) {
const QString desktopEntryName = service->desktopEntryName();
if (!isInServicesList(desktopEntryName)) {
- const bool checked = showGroup.readEntry(desktopEntryName, true);
+ bool checked;
+
+ KAbstractFileItemActionPlugin* abstractPlugin = service->createInstance<KAbstractFileItemActionPlugin>();
+ if (abstractPlugin) {
+ checked = showGroup.readEntry(desktopEntryName, abstractPlugin->enabledByDefault());
+ } else {
+ checked = showGroup.readEntry(desktopEntryName, true);
+ }
+
addRow(service->icon(), service->name(), desktopEntryName, checked);
}
}