Fix contex menu for the NowPlayingWidget in Windows
Introduced in #4416, clicking the cover will show the large art. In Windows, it seems that the click event is also associated with the right mouse button, so it comes up when you bring up the context menu.
This commit is contained in:
parent
7a3830335f
commit
c6ec4014a3
@ -562,9 +562,9 @@ void NowPlayingWidget::contextMenuEvent(QContextMenuEvent* e) {
|
||||
menu_->popup(mapToGlobal(e->pos()));
|
||||
}
|
||||
|
||||
void NowPlayingWidget::mouseReleaseEvent(QMouseEvent*) {
|
||||
void NowPlayingWidget::mouseReleaseEvent(QMouseEvent* e) {
|
||||
// Same behaviour as right-click > Show Fullsize
|
||||
if (!aww_ && !hypnotoad_.get()) {
|
||||
if (e->button() == Qt::LeftButton && !aww_ && !hypnotoad_.get()) {
|
||||
ShowCover();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user