Commit 4a7be678 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii Committed by Nate Graham
Browse files

kcms/keys: Remove dead code

Given that Plasma requires KF 5.90 or newer, the ifdef can be removed.
parent b74a86a7
Pipeline #137383 passed with stage
in 5 minutes and 9 seconds
......@@ -18,8 +18,6 @@
#include <kglobalaccel_component_interface.h>
#include <kglobalaccel_interface.h>
#include <kglobalaccel_version.h>
#include "kcmkeys_debug.h"
static QStringList buildActionId(const QString &componentUnique, const QString &componentFriendly, const QString &actionUnique, const QString &actionFriendly)
......@@ -178,11 +176,7 @@ void GlobalAccelModel::save()
keys.append(key);
}
qCDebug(KCMKEYS) << "Saving" << actionId << action.activeShortcuts << keys;
#if KGLOBALACCEL_VERSION >= QT_VERSION_CHECK(5, 90, 0)
auto reply = m_globalAccelInterface->setForeignShortcutKeys(actionId, keys);
#else
auto reply = m_globalAccelInterface->setForeignShortcut(actionId, keys);
#endif
reply.waitForFinished();
if (!reply.isValid()) {
qCCritical(KCMKEYS) << "Error while saving";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment