[qcineoob] factorisation of events in search results

This commit is contained in:
Julien Veyssier 2014-11-23 19:30:10 +01:00 committed by Romain Bignon
commit a47ec4b5cd
4 changed files with 9 additions and 29 deletions

View file

@ -64,11 +64,7 @@ class MiniSubtitle(QFrame):
def mousePressEvent(self, event):
QFrame.mousePressEvent(self, event)
subtitle = self.backend.get_subtitle(self.subtitle.id)
if event.button() == 4:
self.parent.parent.newTab(u'Details of subtitle "%s"' %
subtitle.name, self.backend, subtitle=subtitle)
self.newTabPressed()
else:
if subtitle:
self.parent.doAction('Details of subtitle "%s"' %
subtitle.name, self.parent.displaySubtitle, [subtitle, self.backend])
self.viewPressed()