[vlc-commits] Qt: main_interface: fix showTab(oldwidget) for undocked playlist (fix #6794 )

Francois Cartegnie git at videolan.org
Sat May 12 16:02:50 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat May 12 16:02:26 2012 +0200| [0ef62578e5b6e06e67868e8a9e2ac11d4436b5da] | committer: Francois Cartegnie

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ef62578e5b6e06e67868e8a9e2ac11d4436b5da
---

 modules/gui/qt4/main_interface.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 096d708..9eb718e 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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();



More information about the vlc-commits mailing list