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

Toni Asensi Esteve null at kde.org
Tue Aug 24 22:51:33 BST 2021


Git commit 4b8d770008426f7b805571956553751779900653 by Toni Asensi Esteve, on behalf of Davide Gianforte.
Committed on 24/08/2021 at 21:35.
Pushed by asensi into branch 'mr/66'.

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/4b8d770008426f7b805571956553751779900653

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