Skip to content

Commit

Permalink
WTrackProperty/WTracktext: unset hover state when menu is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Dec 27, 2023
1 parent 651b8c1 commit 57a9196
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 @@ -221,6 +221,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();
}
}

Expand Down

0 comments on commit 57a9196

Please sign in to comment.