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,7 +553,9 @@ inline void MainInterface::showTab( QWidget *widget ) ...@@ -553,7 +553,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