summaryrefslogtreecommitdiff
path: root/nephilim/plugins
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-05-12 21:53:11 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-05-12 21:53:11 +0200
commit10f6bff0092a817130ec3bf65ed1fdc04a9fff29 (patch)
treec456b98163746c49d387c443dbbff65c7e7cc124 /nephilim/plugins
parent42143bfe8153ddd565d0601e08e623cb515ddb3d (diff)
AlbumCover: change mouseEvent to contextMenuEvent.
Diffstat (limited to 'nephilim/plugins')
-rw-r--r--nephilim/plugins/AlbumCover.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/nephilim/plugins/AlbumCover.py b/nephilim/plugins/AlbumCover.py
index 2c1fd55..91c8c1a 100644
--- a/nephilim/plugins/AlbumCover.py
+++ b/nephilim/plugins/AlbumCover.py
@@ -71,10 +71,9 @@ class wgAlbumCover(QtGui.QLabel):
self.connect(self, QtCore.SIGNAL('new_cover_fetched'), self.set_cover)
- def mousePressEvent(self, event):
- if event.button() == QtCore.Qt.RightButton:
- event.accept()
- self._menu.popup(event.globalPos())
+ def contextMenuEvent(self, event):
+ event.accept()
+ self._menu.popup(event.globalPos())
def refresh(self):
self._fetch_cover(self._fetch_auto)