videoob: stop the video when closing with ESC

At least here the player widget continued playing in the background
when closing the window with ESC, it seems it's actually only hidden.

Signed-off-by: François Revol <revol@free.fr>
This commit is contained in:
François Revol 2013-03-17 22:37:42 +01:00 committed by Florent
commit 8c6709ba47

View file

@ -50,3 +50,7 @@ class Video(QDialog):
def closeEvent(self, event):
self.ui.videoPlayer.stop()
event.accept()
def hideEvent(self, event):
self.ui.videoPlayer.stop()
event.accept()