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/dolphinmainwindow.cpp | |
| parent | c2ef0392e985988a248854523362c39824480d1e (diff) | |
Port away from deprecated KNewFileMenu ctor
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 9c3d9862b..cf1b98f87 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -163,6 +163,10 @@ DolphinMainWindow::DolphinMainWindow() connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinMainWindow::createDirectory); connect(m_actionHandler, &DolphinViewActionHandler::selectionModeChangeTriggered, this, &DolphinMainWindow::slotSetSelectionMode); +#if KIO_VERSION >= QT_VERSION_CHECK(5, 100, 0) + m_newFileMenu->setNewFolderShortcutAction(actionCollection()->action("create_dir")); +#endif + m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler); connect(this, &DolphinMainWindow::urlChanged, m_remoteEncoding, &DolphinRemoteEncoding::slotAboutToOpenUrl); |
