]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove unneeded version check
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 22 Nov 2020 07:42:18 +0000 (08:42 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 22 Nov 2020 07:42:18 +0000 (08:42 +0100)
src/views/dolphinviewactionhandler.cpp

index fef236a7814869b5e92ecd42f7c0b0bab61ae67d..610b768c1366acc015994b2d91d5146e59592e47 100644 (file)
@@ -79,11 +79,7 @@ void DolphinViewActionHandler::createActions()
     // KNewFileMenu takes care of the GUI stuff.
     QAction* newDirAction = m_actionCollection->addAction(QStringLiteral("create_dir"));
     newDirAction->setText(i18nc("@action", "Create Folder..."));
-#if KCONFIG_VERSION >= QT_VERSION_CHECK(5, 74, 0)
     m_actionCollection->setDefaultShortcuts(newDirAction, KStandardShortcut::createFolder());
-#else
-    m_actionCollection->setDefaultShortcut(newDirAction, Qt::Key_F10);
-#endif
     newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));
     newDirAction->setEnabled(false);    // Will be enabled in slotWriteStateChanged(bool) if the current URL is writable
     connect(newDirAction, &QAction::triggered, this, &DolphinViewActionHandler::createDirectoryTriggered);