Commit 955adb07 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Qt4: Fix a small playlist docking bug

Fix a small playlist docking bug where the playlistWidget is not properly set as a Qt::Widget, causing it to behave inappropriately.

Close #5773
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 6a0131dae6a119a72fbec2bce995ca1dfcd9b5be)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 15e62b22
...@@ -856,13 +856,13 @@ void MainInterface::dockPlaylist( bool p_docked ) ...@@ -856,13 +856,13 @@ void MainInterface::dockPlaylist( bool p_docked )
} }
else /* Previously undocked */ else /* Previously undocked */
{ {
/* If playlist is invisible don't show it */
if( !playlistWidget->isVisible() ) return;
QVLCTools::saveWidgetPosition( p_intf, "Playlist", playlistWidget ); QVLCTools::saveWidgetPosition( p_intf, "Playlist", playlistWidget );
playlistWidget->setWindowFlags( Qt::Widget ); // Probably a Qt bug here playlistWidget->setWindowFlags( Qt::Widget ); // Probably a Qt bug here
// It would be logical that QStackWidget::addWidget reset the flags... // It would be logical that QStackWidget::addWidget reset the flags...
stackCentralW->addWidget( playlistWidget ); stackCentralW->addWidget( playlistWidget );
/* If playlist is invisible don't show it */
if( !playlistWidget->isVisible() ) return;
showTab( playlistWidget ); showTab( playlistWidget );
} }
playlistVisible = true; playlistVisible = true;
......
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