Commit 858c8f6e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix playlist entry in taskbar on Win32

Close #3520
(cherry picked from commit 7d55fdfc3c1bc617a0f5df84a02f5cbbcc321eed)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c23f1289
...@@ -652,6 +652,9 @@ void MainInterface::createPlaylist() ...@@ -652,6 +652,9 @@ void MainInterface::createPlaylist()
} }
else else
{ {
#ifdef WIN32
playlistWidget->setParent( NULL );
#endif
playlistWidget->setWindowFlags( Qt::Window ); playlistWidget->setWindowFlags( Qt::Window );
/* This will restore the geometry but will not work for position, /* This will restore the geometry but will not work for position,
...@@ -683,6 +686,9 @@ void MainInterface::togglePlaylist() ...@@ -683,6 +686,9 @@ void MainInterface::togglePlaylist()
} }
else else
{ {
#ifdef WIN32
playlistWidget->setParent( NULL );
#endif
playlistWidget->setWindowFlags( Qt::Window ); playlistWidget->setWindowFlags( Qt::Window );
playlistVisible = !playlistVisible; playlistVisible = !playlistVisible;
playlistWidget->setVisible( playlistVisible ); playlistWidget->setVisible( playlistVisible );
...@@ -699,6 +705,9 @@ void MainInterface::dockPlaylist( bool p_docked ) ...@@ -699,6 +705,9 @@ void MainInterface::dockPlaylist( bool p_docked )
if( !p_docked ) if( !p_docked )
{ {
stackCentralW->removeWidget( playlistWidget ); stackCentralW->removeWidget( playlistWidget );
#ifdef WIN32
playlistWidget->setParent( NULL );
#endif
playlistWidget->setWindowFlags( Qt::Window ); playlistWidget->setWindowFlags( Qt::Window );
QVLCTools::restoreWidgetPosition( p_intf, "Playlist", QVLCTools::restoreWidgetPosition( p_intf, "Playlist",
playlistWidget, QSize( 600, 300 ) ); playlistWidget, QSize( 600, 300 ) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment