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:
parent
667879518a
commit
8c6709ba47
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue