[vlc-commits] Qt: fix playback start if VLC was minimized

Jean-Baptiste Kempf git at videolan.org
Wed May 25 13:00:23 CEST 2011


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 25 12:51:06 2011 +0200| [fe9029bcf4f8da1c2eb1711c182b83ba652dd2d4] | committer: Jean-Baptiste Kempf

Qt: fix playback start if VLC was minimized

Close #3840
(cherry picked from commit 9ea91967ae0f9c80871fd2818a34b9056a0c94ab)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=fe9029bcf4f8da1c2eb1711c182b83ba652dd2d4
---

 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 6f2590b..32f6c49 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -564,6 +564,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