From 8351e4ff06254b9a923f33f2c1f2c4f30560c9a8 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Wed, 20 Sep 2023 12:09:53 +0200 Subject: [PATCH] WTrackProperty/WTracktext: unset hover state when menu is opened --- src/widget/wtrackproperty.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widget/wtrackproperty.cpp b/src/widget/wtrackproperty.cpp index 9cf8711aa649..2caa03494c0d 100644 --- a/src/widget/wtrackproperty.cpp +++ b/src/widget/wtrackproperty.cpp @@ -224,6 +224,11 @@ void WTrackProperty::contextMenuEvent(QContextMenuEvent* event) { m_pTrackMenu->loadTrack(m_pCurrentTrack, m_group); // Create the right-click menu m_pTrackMenu->popup(event->globalPos()); + // Unset the hover state manually (stuck state is probably a Qt bug) + // TODO(ronso0) Test whether this is still required with Qt6 + QEvent lev = QEvent(QEvent::Leave); + qApp->sendEvent(this, &lev); + update(); } }