]> git.sesse.net Git - vlc/commitdiff
Qt: fix playback start if VLC was minimized
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 May 2011 10:51:06 +0000 (12:51 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 May 2011 10:58:58 +0000 (12:58 +0200)
Close #3840

modules/gui/qt4/main_interface.cpp

index a4161e1838da3d506521736abb9cdb0e3a339f08..b88f58680170894a9a8d879597f7034f89e82fdf 100644 (file)
@@ -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 );