Commit 3305c6a1 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Qt4: Account for rare case when video loads too quickly

Close #6481
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 9340c4daa66dc15d40eec98535977338e150c5b1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f3ee60c1
...@@ -553,6 +553,8 @@ inline void MainInterface::showTab( QWidget *widget ) ...@@ -553,6 +553,8 @@ inline void MainInterface::showTab( QWidget *widget )
/* Embedded playlist -> Non-embedded playlist */ /* Embedded playlist -> Non-embedded playlist */
if( bgWidget == stackCentralOldWidget && widget == videoWidget ) if( bgWidget == stackCentralOldWidget && widget == videoWidget )
{ {
/* In rare case when video is started before the interface */
if( playlistWidget != NULL )
playlistWidget->artContainer->removeWidget( videoWidget ); playlistWidget->artContainer->removeWidget( videoWidget );
videoWidget->show(); videoWidget->raise(); videoWidget->show(); videoWidget->raise();
stackCentralW->addWidget( videoWidget ); stackCentralW->addWidget( videoWidget );
......
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