Bug 486107

Summary: Window to install new widgets: Double search bar if opened in small window first and then increase window width
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: postix <postix>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: ahiemstra, kde, me, nate, notmart
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description postix 2024-04-25 11:55:49 UTC
Created attachment 168893 [details]
Screenshot

STEPS TO REPRODUCE
1. Open the window to install new widgets for the panel
2. Make it small so that only the Magnifying glass is displayed
3. Clicked on it, type something
4. Make the window bigger by dragging on its right edge until
5. Type something into the original search field

OBSERVED RESULT
Two search fields are now displayed. Both search fields are updated.


EXPECTED RESULT
A single search field is shown

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-08-16 15:53:07 UTC
Can confirm. This is an issue in Kirigami.ActionToolBar; moving there.
Comment 2 Bug Janitor Service 2024-08-21 10:41:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1608
Comment 3 Arjen Hiemstra 2024-08-22 10:04:21 UTC
Git commit 24e137ae2bb7ea42a30a7ea2f6195230b3d303fe by Arjen Hiemstra.
Committed on 22/08/2024 at 10:00.
Pushed by ahiemstra into branch 'master'.

PrivateActionToolButton: Hide menu if button is hidden

If the menu is open when the button gets hidden, we'd end up with a menu
that doesn't have a corresponding button. So in that case, close the
menu.

This most prominently happens when ActionToolBar hides the corresponding
action because of space changes.

M  +7    -1    src/controls/private/PrivateActionToolButton.qml

https://invent.kde.org/frameworks/kirigami/-/commit/24e137ae2bb7ea42a30a7ea2f6195230b3d303fe