Commit a8cc1959 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

Qt: main_interface: fix showTab(oldwidget) for undocked playlist (fix #6794)

(cherry picked from commit 0ef62578e5b6e06e67868e8a9e2ac11d4436b5da)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2d044e47
......@@ -528,6 +528,11 @@ inline void MainInterface::showTab( QWidget *widget )
#ifdef DEBUG_INTF
msg_Warn( p_intf, "Old stackCentralOldWidget %i", stackCentralW->indexOf( stackCentralOldWidget ) );
#endif
/* fixing when the playlist has been undocked after been hidden.
restoreStackOldWidget() is called when video stops but
stackCentralOldWidget would still be pointing to playlist */
if ( widget == playlistWidget && !isPlDocked() )
widget = bgWidget;
stackCentralOldWidget = stackCentralW->currentWidget();
stackWidgetsSizes[stackCentralOldWidget] = stackCentralW->size();
......
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