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 Feb 12, 2024
1 parent eb2a6d2 commit 393c128
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 @@ -208,6 +208,11 @@ void WTrackProperty::contextMenuEvent(QContextMenuEvent* event) {
m_pTrackMenu->loadTrack(m_pCurrentTrack, m_group);
// Show 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();
}
}

Expand Down

0 comments on commit 393c128

Please sign in to comment.