[vlc-commits] qt: main_intf: Fix show/hide/dock/undock playlist inconsistencies

Hugo Beauzée-Luyssen git at videolan.org
Thu Jan 19 16:21:54 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jan 19 15:55:48 2017 +0100| [7b7132dec9fa9b18011003f03adeaec7264fd47c] | committer: Hugo Beauzée-Luyssen

qt: main_intf: Fix show/hide/dock/undock playlist inconsistencies

Fix #10106

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

 modules/gui/qt/main_interface.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index 747e654..fb12ba2 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -986,8 +986,9 @@ void MainInterface::dockPlaylist( bool p_docked )
         playlistVisible = playlistWidget->isVisible();
         stackCentralW->removeWidget( playlistWidget );
         dialog->importPlaylistWidget( playlistWidget );
+        if (THEMIM->getIM()->hasVideo())
+            showTab(videoWidget);
         if ( playlistVisible ) dialog->show();
-        restoreStackOldWidget();
     }
     else /* Previously undocked */
     {



More information about the vlc-commits mailing list