From c64059bd02061968b184c6c8e3d862423afd2547 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 18 Oct 2022 22:38:45 +0200 Subject: Port away from deprecated KNewFileMenu ctor --- src/dolphincontextmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphincontextmenu.cpp') diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 94fed1872..8130772d2 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -170,6 +170,9 @@ void DolphinContextMenu::addDirectoryItemContextMenu() // set up 'Create New' menu DolphinNewFileMenu *newFileMenu = new DolphinNewFileMenu(m_mainWindow->actionCollection(), m_mainWindow); +#if KIO_VERSION >= QT_VERSION_CHECK(5, 100, 0) + newFileMenu->setNewFolderShortcutAction(m_mainWindow->actionCollection()->action("create_dir")); +#endif newFileMenu->checkUpToDate(); #if KIO_VERSION >= QT_VERSION_CHECK(5, 97, 0) newFileMenu->setWorkingDirectory(m_fileInfo.url()); -- cgit v1.3