[vlc-commits] commit: Qt: fix playlist entry in taskbar on Win32 (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sat May 1 00:50:47 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May  1 00:42:59 2010 +0200| [7d55fdfc3c1bc617a0f5df84a02f5cbbcc321eed] | committer: Jean-Baptiste Kempf 

Qt: fix playlist entry in taskbar on Win32

Close #3520

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

 modules/gui/qt4/main_interface.cpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 42395b3..0f54943 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -652,6 +652,9 @@ void MainInterface::createPlaylist()
     }
     else
     {
+#ifdef WIN32
+        playlistWidget->setParent( NULL );
+#endif
         playlistWidget->setWindowFlags( Qt::Window );
 
         /* This will restore the geometry but will not work for position,
@@ -683,6 +686,9 @@ void MainInterface::togglePlaylist()
     }
     else
     {
+#ifdef WIN32
+        playlistWidget->setParent( NULL );
+#endif
         playlistWidget->setWindowFlags( Qt::Window );
         playlistVisible = !playlistVisible;
         playlistWidget->setVisible( playlistVisible );
@@ -699,6 +705,9 @@ void MainInterface::dockPlaylist( bool p_docked )
     if( !p_docked )
     {
         stackCentralW->removeWidget( playlistWidget );
+#ifdef WIN32
+        playlistWidget->setParent( NULL );
+#endif
         playlistWidget->setWindowFlags( Qt::Window );
         QVLCTools::restoreWidgetPosition( p_intf, "Playlist",
                 playlistWidget, QSize( 600, 300 ) );



More information about the vlc-commits mailing list