From acd9b2e1367bb289613e77bc164f4ad916d23e3b Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 17 Oct 2010 22:35:52 +0000 Subject: [PATCH] Only react to *left* mouse clicks on the ratings column --- src/playlist/playlistview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 388d0a49e..6b3b2006f 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -488,7 +488,8 @@ void PlaylistView::leaveEvent(QEvent* e) { void PlaylistView::mousePressEvent(QMouseEvent* event) { QModelIndex index = indexAt(event->pos()); - if (index.isValid() && index.data(Playlist::Role_CanSetRating).toBool()) { + if (event->button() == Qt::LeftButton && index.isValid() && + index.data(Playlist::Role_CanSetRating).toBool()) { // Calculate which star was clicked double new_rating = RatingItemDelegate::RatingForPos( event->pos(), visualRect(index));