https://bugs.kde.org/show_bug.cgi?id=505197

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/-/commit/5ab885d
                   |                            |cfa606686bf0310cbb14c0dc561
                   |                            |be634a
         Resolution|DUPLICATE                   |FIXED

--- Comment #3 from Méven <[email protected]> ---
Git commit 5ab885dcfa606686bf0310cbb14c0dc561be634a by Méven Car, on behalf of
Pan Zhang.
Committed on 13/05/2026 at 08:45.
Pushed by meven into branch 'master'.

kurlnavigator: Don't show context menu targeting hidden buttons when path is
compressed

When the window is narrow and breadcrumb buttons are hidden to save space,
right-clicking on a visible button could match a hidden button instead.
openContextMenu() searched all m_navButtons with geometry().contains() without
checking visibility, so hidden buttons with stale geometry were matched first
by std::find_if.

Add a isVisible() check to the find_if predicate so only visible buttons are
considered when determining which breadcrumb button was clicked.

M  +1    -1    src/filewidgets/kurlnavigator.cpp

https://invent.kde.org/frameworks/kio/-/commit/5ab885dcfa606686bf0310cbb14c0dc561be634a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to