mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-21 15:14:13 +00:00
Allow removing the rating for tracks
This commit is contained in:
@@ -71,7 +71,7 @@ class RatingWidget(QtGui.QWidget):
|
||||
def mousePressEvent(self, event):
|
||||
if event.button() == QtCore.Qt.LeftButton:
|
||||
rating = self._getRatingFromPosition(event.x())
|
||||
if self._rating == 1 and rating == 1:
|
||||
if self._rating == rating:
|
||||
rating = 0
|
||||
self.setRating(rating)
|
||||
event.accept()
|
||||
|
||||
Reference in New Issue
Block a user