[weboob] [PATCH 1/1] videoob: stop the video when closing with ESC

François Revol revol at free.fr
Sun Mar 17 22:37:42 CET 2013


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 at free.fr>
---
 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 4e5d039..91875b8 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()
-- 
1.7.10.4




More information about the weboob mailing list