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:
Mark Furneaux 2015-06-05 13:17:04 -04:00
parent 7a3830335f
commit c6ec4014a3
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}