Commit 9340c4da 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>
parent a52bbd19
...@@ -556,7 +556,9 @@ inline void MainInterface::showTab( QWidget *widget ) ...@@ -556,7 +556,9 @@ 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 )
{ {
playlistWidget->artContainer->removeWidget( videoWidget ); /* In rare case when video is started before the interface */
if( playlistWidget != NULL )
playlistWidget->artContainer->removeWidget( videoWidget );
videoWidget->show(); videoWidget->raise(); videoWidget->show(); videoWidget->raise();
stackCentralW->addWidget( videoWidget ); stackCentralW->addWidget( videoWidget );
stackCentralW->setCurrentWidget( videoWidget ); stackCentralW->setCurrentWidget( 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