diff --git a/weboob/applications/qcineoob/minimovie.py b/weboob/applications/qcineoob/minimovie.py index fce75fba..8b40bda1 100644 --- a/weboob/applications/qcineoob/minimovie.py +++ b/weboob/applications/qcineoob/minimovie.py @@ -81,12 +81,6 @@ class MiniMovie(QFrame): if event.button() == 2: self.gotThumbnail() elif event.button() == 4: - movie = self.backend.get_movie(self.movie.id) - self.parent.parent.newTab(u'Details of movie "%s"' % - movie.original_title, self.backend, movie=movie) + self.newTabPressed() else: - QApplication.setOverrideCursor(Qt.WaitCursor) - movie = self.backend.get_movie(self.movie.id) - if movie: - self.parent.doAction('Details of movie "%s"' % - movie.original_title, self.parent.displayMovie, [movie, self.backend]) + self.viewPressed() diff --git a/weboob/applications/qcineoob/miniperson.py b/weboob/applications/qcineoob/miniperson.py index 8488e2e7..6d640f2a 100644 --- a/weboob/applications/qcineoob/miniperson.py +++ b/weboob/applications/qcineoob/miniperson.py @@ -86,13 +86,7 @@ class MiniPerson(QFrame): if event.button() == 2: self.gotThumbnail() - if event.button() == 4: - person = self.backend.get_person(self.person.id) - self.parent.parent.newTab(u'Details of person "%s"' % - person.name, self.backend, person=person) + elif event.button() == 4: + self.newTabPressed() else: - QApplication.setOverrideCursor(Qt.WaitCursor) - person = self.backend.get_person(self.person.id) - if person: - self.parent.doAction(u'Details of person "%s"' % - person.name, self.parent.displayPerson, [person, self.backend]) + self.viewPressed() diff --git a/weboob/applications/qcineoob/minisubtitle.py b/weboob/applications/qcineoob/minisubtitle.py index d3e3a023..c4d93e4f 100644 --- a/weboob/applications/qcineoob/minisubtitle.py +++ b/weboob/applications/qcineoob/minisubtitle.py @@ -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() diff --git a/weboob/applications/qcineoob/minitorrent.py b/weboob/applications/qcineoob/minitorrent.py index 5bd11317..7003b293 100644 --- a/weboob/applications/qcineoob/minitorrent.py +++ b/weboob/applications/qcineoob/minitorrent.py @@ -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()