Summary: | Quick Open Session toolbar button does nothing | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Matt Scott <mascot26> |
Component: | sessions | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cullmann, justin.zobel, matthew.linux |
Priority: | NOR | ||
Version: | 22.04.0 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/kate/commit/4f58104fb00d862b12ec98baa268b3cb6bdd7cbb | Version Fixed In: | 22.08.0 |
Description
Matt Scott
2020-09-30 16:00:45 UTC
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 |