Allow removing the rating for tracks

This commit is contained in:
Philipp Wolfer
2008-11-26 22:37:34 +01:00
parent 9b18d44964
commit c4363f25e6

View File

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