[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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue