diff options
| author | Nicolas Fella <[email protected]> | 2023-07-08 22:42:32 +0200 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2023-07-08 22:42:32 +0200 |
| commit | 88ebcd42db91466ac32fa4a43482ee96e599bf7c (patch) | |
| tree | 1d1cd87119c17431936679cdb024caea05eee017 /src/settings | |
| parent | f60628cdfab604864cd2975be10930f0d5689cb0 (diff) | |
Fix plugin query
QT_MAJOR_VERSION is undefined, the proper thing is QT_VERSION_MAJOR
This causes the plugin query to not find any plugins
Since we only target KF6 we might as well hardcode that
Diffstat (limited to 'src/settings')
| -rw-r--r-- | src/settings/contextmenu/contextmenusettingspage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp index 01d396090..0f43d0b7a 100644 --- a/src/settings/contextmenu/contextmenusettingspage.cpp +++ b/src/settings/contextmenu/contextmenusettingspage.cpp @@ -307,7 +307,7 @@ void ContextMenuSettingsPage::loadServices() } // Load JSON-based plugins that implement the KFileItemActionPlugin interface - const auto jsonPlugins = KPluginMetaData::findPlugins(QStringLiteral("kf" QT_STRINGIFY(QT_MAJOR_VERSION)) + QStringLiteral("/kfileitemaction")); + const auto jsonPlugins = KPluginMetaData::findPlugins(QStringLiteral("kf6/kfileitemaction")); for (const auto &jsonMetadata : jsonPlugins) { const QString desktopEntryName = jsonMetadata.pluginId(); |
