Commit 0ef62578 authored by Francois Cartegnie's avatar Francois Cartegnie

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

parent a68ca69e
......@@ -535,6 +535,11 @@ inline void MainInterface::showTab( QWidget *widget )
stackCentralW->indexOf( stackCentralOldWidget ) );
msg_Dbg( p_intf, "ShowTab request for %s", widget->metaObject()->className() );
#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