From c6ec4014a3d7cf6981dda435b08af56b06cee2d1 Mon Sep 17 00:00:00 2001 From: Mark Furneaux Date: Fri, 5 Jun 2015 13:17:04 -0400 Subject: [PATCH] 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. --- src/widgets/nowplayingwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/nowplayingwidget.cpp b/src/widgets/nowplayingwidget.cpp index 10194e18a..25f59df47 100644 --- a/src/widgets/nowplayingwidget.cpp +++ b/src/widgets/nowplayingwidget.cpp @@ -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(); } }