[utilities/krusader] krusader: Fix build for KF < 5.64

Davide Gianforte null at kde.org
Wed Aug 25 07:49:41 BST 2021


Git commit 651598011456664359a6c48c5358bc7da0d27fa2 by Davide Gianforte.
Committed on 25/08/2021 at 06:46.
Pushed by gengisdave into branch 'master'.

Fix build for KF < 5.64

The last commit introduced a method which require at least KF 5.64, making Krusader
unable to compile with older releases.

GUI: 'Ctrl+Shift+,' is now seen as the shortcut to configure Krusader, following the standard.
CCBUG: 441320

M  +1    -1    krusader/kractions.cpp

https://invent.kde.org/utilities/krusader/commit/651598011456664359a6c48c5358bc7da0d27fa2

diff --git a/krusader/kractions.cpp b/krusader/kractions.cpp
index 262151de..9dae64fd 100644
--- a/krusader/kractions.cpp
+++ b/krusader/kractions.cpp
@@ -258,7 +258,7 @@ void KrActions::setupActions(Krusader *krusaderApp)
     NEW_KACTION(actSyncDirs, i18n("Synchronize Fol&ders..."), "folder-sync", Qt::CTRL + Qt::Key_Y, SLOTS, SLOT(slotSynchronizeDirs()), "sync dirs");
 #endif
     NEW_KACTION(actDiskUsage, i18n("D&isk Usage..."), "kr_diskusage", Qt::ALT + Qt::SHIFT + Qt::Key_S, SLOTS, SLOT(slotDiskUsage()), "disk usage");
-    NEW_KACTION(actKonfigurator, i18n("Configure &Krusader..."), "configure", KStandardShortcut::preferences(), SLOTS, SLOT(startKonfigurator()), "konfigurator");
+    NEW_KACTION(actKonfigurator, i18n("Configure &Krusader..."), "configure", KStandardShortcut::shortcut(KStandardShortcut::Preferences), SLOTS, SLOT(startKonfigurator()), "konfigurator");
     NEW_KACTION(actSavePosition, i18n("Save &Position"), nullptr, 0, krusaderApp, SLOT(savePosition()), "save position");
     NEW_KACTION(actCompare, i18n("Compare b&y Content..."), "kr_comparedirs", 0, SLOTS, SLOT(compareContent()), "compare");
     NEW_KACTION(actMultiRename, i18n("Multi &Rename..."), "edit-rename", Qt::SHIFT + Qt::Key_F2, SLOTS, SLOT(multiRename()), "multirename");


More information about the kde-doc-english mailing list