Verified Commit 4cc3e9fc authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Fixup previous commit and make it backwards-compatible

parent aa8658a5
......@@ -31,6 +31,7 @@
#include <KShortcutsDialog>
#include <KStandardAction>
#include <KUrlCompletion> //locationbar
#include <kxmlgui_version.h>
#include <QApplication> //setupActions()
#include <QDir>
......@@ -209,8 +210,11 @@ void MainWindow::configToolbars() //slot
void MainWindow::configKeys() //slot
{
KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, true /*isModal*/, this);
#if KXMLGUI_VERSION < QT_VERSION_CHECK(5,83,0)
KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, this, true);
#else
KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, true /*isModal*/, this);
#endif
}
void MainWindow::slotScanFolder()
......
Markdown is supported
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