Bug 501587

Summary: Last component of path is unnecessarily clickable
Product: [Frameworks and Libraries] frameworks-kio Reporter: postix <postix>
Component: URL navigatorAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 6.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.14
Sentry Crash Report:

Description postix 2025-03-16 15:56:43 UTC
SUMMARY

Open any path, where one of the directories only contain a single folder, e.g. the very last one in the hierarchy.

The icon in the address bar of this directory is clickable, but nothing happens, because there are no subfolders!
I would expect that it's not clickable in this case. 


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 postix 2025-03-16 15:58:08 UTC
The same also happens if you delete all subfolder in the terminal or in 2nd Dolphin window, but those cases I would say are very edge-like.

The one above with the last folder containing no subfolders is likely rather common.
Comment 2 Nate Graham 2025-03-21 18:07:34 UTC
Can confirm, even with https://invent.kde.org/frameworks/kio/-/merge_requests/1842.

But wasn't this the case with the old URL bar too?
Comment 3 postix 2025-03-21 18:35:42 UTC
(In reply to Nate Graham from comment #2)
> But wasn't this the case with the old URL bar too?

O, true! :)
Comment 4 Akseli Lahtinen 2025-04-04 20:01:11 UTC
Git commit 7067680d23229b80dd92d837ee129e987ba875e7 by Akseli Lahtinen.
Committed on 04/04/2025 at 20:00.
Pushed by akselmo into branch 'master'.

KUrlNavigatorButton: Use arrow as separators

Due to the feedback of regular separator not being good enough for
separating folders, use an arrow separator instead.

This also refactors bunch of code around the button, so it should
be easier to tweak over time.

Remove icons due to the added clutter. They would work with full height chevrons but those are not technically feasible at this time.
Related: bug 501575, bug 501582, bug 501589, bug 501706, bug 501803
FIXED-IN: 6.14

M  +38   -20   src/filewidgets/kurlnavigator.cpp
M  +15   -0    src/filewidgets/kurlnavigator.h
M  +75   -70   src/filewidgets/kurlnavigatorbutton.cpp
M  +5    -3    src/filewidgets/kurlnavigatorbutton_p.h
M  +10   -14   src/filewidgets/kurlnavigatorbuttonbase.cpp
M  +1    -1    src/filewidgets/kurlnavigatortogglebutton.cpp

https://invent.kde.org/frameworks/kio/-/commit/7067680d23229b80dd92d837ee129e987ba875e7