[vlc-commits] Qt: fix playback start if VLC was minimized
Jean-Baptiste Kempf
git at videolan.org
Wed May 25 12:59:21 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 25 12:51:06 2011 +0200| [9ea91967ae0f9c80871fd2818a34b9056a0c94ab] | committer: Jean-Baptiste Kempf
Qt: fix playback start if VLC was minimized
Close #3840
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ea91967ae0f9c80871fd2818a34b9056a0c94ab
---
modules/gui/qt4/main_interface.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index a4161e1..b88f586 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -592,6 +592,10 @@ WId MainInterface::getVideo( int *pi_x, int *pi_y,
void MainInterface::getVideoSlot( WId *p_id, int *pi_x, int *pi_y,
unsigned *pi_width, unsigned *pi_height )
{
+ /* Hidden or minimized, activate */
+ if( isHidden() || isMinimized() )
+ toggleUpdateSystrayMenu();
+
/* Request the videoWidget */
WId ret = videoWidget->request( pi_x, pi_y,
pi_width, pi_height, !b_autoresize );
More information about the vlc-commits
mailing list