SUMMARY The Quick Open Session menu item works fine, it produces a pop out menu list of my saved sessions. I would expect the same functionality with the Quick Open Session toolbar button, but it does nothing when clicked, not even a blank pop out menu. I'm relatively new to Kate and only just started working with sessions so can't confirm if this is a new issue. STEPS TO REPRODUCE 1. Have multiple sessions saved 2. Confirm they appear in the menu Sessions>Quick Open Session> 3. Add Quick Open Session button to toolbar and click OBSERVED RESULT Nothing at all EXPECTED RESULT A pop out list of my recent saved sessions, allowing me to select one to open. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux (x86_64) release 5.8.6-1-MANJARO KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 ADDITIONAL INFORMATION Let me know if any more info required.
Is the submenu maybe filled with an aboutToShow() signal that somehow does not work when placed in the toolbar?
Can confirm on kate git master.
I can also confirm this, however, if you hold your click on the button the menu will eventually show up after a cuouple of seconds.
This is fixed on 22.04.3. I actually tracking down a similar issue regarding the Sessions menu. I learned that KActionMenu have a PopupMode property, which by default set to DelayedPopup (https://doc.qt.io/qt-5/qtoolbutton.html#popupMode-prop), this is why all of the Action menu affected this problem where it is not set explicitly to InstantPopup. Knowing this it is trivial to fix all the session-related menus, by adding the following line to the KateSessionsAction::KateSessionsAction constructor (or whatever it is, I do not really know C++): setPopupMode(QToolButton::InstantPopup); I'm wondering how many other component are affected...
Actually I was wrong, I mixed up with the Open Recent menu, this one is not fixed, but it is an easy fix, see my previous comment
Thanks for the fix, backported to 22.08 https://invent.kde.org/utilities/kate/commit/4f58104fb00d862b12ec98baa268b3cb6bdd7cbb