]> git.sesse.net Git - vlc/commitdiff
Qt: fix playlist entry in taskbar on Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Apr 2010 22:42:59 +0000 (00:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 30 Apr 2010 22:42:59 +0000 (00:42 +0200)
Close #3520

modules/gui/qt4/main_interface.cpp

index 42395b343d474f0c9cefd9e47b9879f45b84fdab..0f54943eb3c655f3ad9087379eaa96d8acb12d24 100644 (file)
@@ -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 ) );