Skip to content

Commit

Permalink
WTrackProperty: unset hover state when menu is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Apr 2, 2024
1 parent 57eae25 commit 687ed2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widget/wtrackproperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ void WTrackProperty::contextMenuEvent(QContextMenuEvent* pEvent) {
m_pTrackMenu->loadTrack(m_pCurrentTrack, m_group);
// Show the right-click menu
m_pTrackMenu->popup(pEvent->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();
}
}

Expand Down

0 comments on commit 687ed2f

Please sign in to comment.