[vlc-devel] [PATCH] Hide the qt4 playlist automatically, if the main interface is minimized.

VlcVelope 1034-135 at online.de
Sun Apr 29 22:54:40 CEST 2012


If the main interface is restored, the playlist shows again.

Regards,
VlcVelope
---
 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 2dec50d..9c277fb 100755
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1205,6 +1205,8 @@ void MainInterface::changeEvent(QEvent *event)
                 b_hasPausedWhenMinimized = true;
                 THEMIM->pause();
             }
+            if( playlistWidget && !b_plDocked )
+                playlistWidget->setVisible( false );
         }
         else if( oldState & Qt::WindowMinimized && !( newState & Qt::WindowMinimized ) )
         {
@@ -1212,6 +1214,8 @@ void MainInterface::changeEvent(QEvent *event)
             {
                 THEMIM->play();
             }
+            if( playlistWidget && !b_plDocked )
+                playlistWidget->setVisible( playlistVisible );
         }
     }
 
-- 
1.7.5.4




More information about the vlc-devel mailing list