[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

@ -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()