diff options
| author | Nicolas Fella <[email protected]> | 2022-10-18 22:38:45 +0200 |
|---|---|---|
| committer | Dāvis Mosāns <[email protected]> | 2023-03-04 23:49:48 +0000 |
| commit | c64059bd02061968b184c6c8e3d862423afd2547 (patch) | |
| tree | cf09912cf19d4d6c5fb46fda6f51e35af1b9f93c /src/dolphincontextmenu.cpp | |
| parent | c2ef0392e985988a248854523362c39824480d1e (diff) | |
Port away from deprecated KNewFileMenu ctor
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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()); |
