From 8c6709ba47d6413df30cfe2c5cd4b858a9acd082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 17 Mar 2013 22:37:42 +0100 Subject: [PATCH] videoob: stop the video when closing with ESC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- weboob/applications/qvideoob/video.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/applications/qvideoob/video.py b/weboob/applications/qvideoob/video.py index 4e5d0397..91875b85 100644 --- a/weboob/applications/qvideoob/video.py +++ b/weboob/applications/qvideoob/video.py @@ -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()