mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Clear mouseover state after closing menu in bookmarks toolbar
The button was underMouse() after closing the context menu Differential Revision: https://phabricator.kde.org/D10894
This commit is contained in:
parent
30b2ba41cd
commit
e4c4fd10fc
|
@ -316,7 +316,7 @@ void BookmarksToolbarButton::paintEvent(QPaintEvent* event)
|
|||
option.features &= ~QStyleOptionButton::HasMenu;
|
||||
|
||||
// Draw button base (only under mouse, this is autoraise button)
|
||||
if (isDown() || underMouse()) {
|
||||
if (isDown() || hitButton(mapFromGlobal(QCursor::pos()))) {
|
||||
option.state |= QStyle::State_AutoRaise | QStyle::State_Raised;
|
||||
style()->drawPrimitive(QStyle::PE_PanelButtonTool, &option, &p, this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user