[dolphin] [Bug 512020] Create new folder ignores selected folder

Méven <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=512020

--- Comment #13 from Méven <[email protected]> ---
Git commit 705e366aaf6ea76c2583107c708c7bdd6dc4a08a by Méven Car.
Committed on 08/08/2026 at 13:54.
Pushed by meven into branch 'release/26.08'.

dolphinview,dolphinviewactionhandler: split create folder into two actions

Ctrl+Shift+N and the context menu shared a single action, so the menu
advertised a shortcut that did something else: the shortcut creates in the
viewed directory, the menu in the folder that was clicked. Add a second
action for the selected folder, so the shortcut is no longer shown in the
menu and can be bound separately. It gets no default shortcut, matching
the existing paste-into-folder entry.

A newly created folder is now also selected regardless of the previous
selection. Before it was selected only when nothing was selected, so the
common "select something, then create a folder next to it" flow left it
unselected and it had to be looked up by hand.

Implements the approach described in
https://invent.kde.org/system/dolphin/-/merge_requests/1137#note_1400212
Related: bug 508196


(cherry picked from commit 2ae4985411d56807119287714f7fc4924564c65d)

Co-authored-by: Gergő Gelóczi <[email protected]>

M  +1    -1    src/dolphincontextmenu.cpp
M  +4    -2    src/dolphinmainwindow.cpp
M  +1    -1    src/dolphinmainwindow.h
M  +9    -2    src/dolphinpart.cpp
M  +5    -0    src/dolphinpart.h
M  +153  -0    src/tests/dolphinmainwindowtest.cpp
M  +8    -10   src/views/dolphinview.cpp
M  +35   -1    src/views/dolphinviewactionhandler.cpp
M  +13   -2    src/views/dolphinviewactionhandler.h

https://invent.kde.org/system/dolphin/-/commit/705e366aaf6ea76c2583107c708c7bdd6dc4a08a

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.