[qcineoob] factorisation of events in search results
This commit is contained in:
parent
2ad030c6bb
commit
a47ec4b5cd
4 changed files with 9 additions and 29 deletions
|
|
@ -67,11 +67,7 @@ class MiniTorrent(QFrame):
|
|||
def mousePressEvent(self, event):
|
||||
QFrame.mousePressEvent(self, event)
|
||||
|
||||
torrent = self.backend.get_torrent(self.torrent.id)
|
||||
if event.button() == 4:
|
||||
self.parent.parent.newTab(u'Details of torrent "%s"' %
|
||||
torrent.name, self.backend, torrent=torrent)
|
||||
self.newTabPressed()
|
||||
else:
|
||||
if torrent:
|
||||
self.parent.doAction('Details of torrent "%s"' %
|
||||
torrent.name, self.parent.displayTorrent, [torrent, self.backend])
|
||||
self.viewPressed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue