[vlc-commits] commit: Qt4: restart the playlist in the correct state when closed ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sun Jul 4 00:31:58 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jul  4 00:26:53 2010 +0200| [3d80127ebdfc7d73b4ee3af2230e1d74e11adb3d] | committer: Jean-Baptiste Kempf 

Qt4: restart the playlist in the correct state when closed

Close #3788

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

 modules/gui/qt4/components/playlist/playlist.cpp |    2 +-
 modules/gui/qt4/main_interface.cpp               |    7 +------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index ea5495a..5368bf0 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -151,7 +151,7 @@ void PlaylistWidget::closeEvent( QCloseEvent *event )
 {
     if( THEDP->isDying() )
     {
-        /* FIXME is it needed ? */
+        p_intf->p_sys->p_mi->playlistVisible = true;
         event->accept();
     }
     else
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index ef0bce8..5675152 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -286,12 +286,7 @@ MainInterface::~MainInterface()
     settings->setValue( "pl-dock-status", b_plDocked );
     /* Save playlist state */
     if( playlistWidget )
-    {
-        settings->setValue( "playlist-visible",
-                            isPlDocked() ?
-                            playlistVisible :
-                            playlistWidget->isVisible() /* FIXME */ );
-    }
+        settings->setValue( "playlist-visible", playlistVisible );
 
     settings->setValue( "adv-controls",
                         getControlsVisibilityStatus() & CONTROLS_ADVANCED );



More information about the vlc-commits mailing list