[vlc-commits] Qt: try to correctly save the playlist state

Jean-Baptiste Kempf git at videolan.org
Sun Apr 27 19:38:44 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 27 19:37:18 2014 +0200| [f07447b47f0b239a3be3f533bc323b39178e4139] | committer: Jean-Baptiste Kempf

Qt: try to correctly save the playlist state

Close #11331

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

 modules/gui/qt4/main_interface.cpp |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 4ce6e5e..6f69b36 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -977,8 +977,10 @@ void MainInterface::setStatusBarVisibility( bool b_visible )
 
 void MainInterface::setPlaylistVisibility( bool b_visible )
 {
-    if ( !isPlDocked() && !THEDP->isDying() && (playlistWidget && !playlistWidget->isMinimized() ) )
-        playlistVisible = b_visible;
+    if( isPlDocked() || THEDP->isDying() || (playlistWidget && playlistWidget->isMinimized() ) )
+        return;
+
+    playlistVisible = b_visible;
 }
 
 #if 0



More information about the vlc-commits mailing list