[vlc-devel] commit: Qt: end settings group earlier so other settings have effect ( Jakob Leben )
git version control
git at videolan.org
Tue Jan 26 07:06:21 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Tue Jan 26 06:48:58 2010 +0100| [4d4dd098d382f070ab594160f839fcc0905d774f] | committer: Jakob Leben
Qt: end settings group earlier so other settings have effect
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d4dd098d382f070ab594160f839fcc0905d774f
---
modules/gui/qt4/main_interface.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 8f18735..5722ba5 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -270,11 +270,14 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
}
msg_Dbg( p_intf, "%i", stackCentralOldState );
+
/* Playlist */
- if( settings->value( "playlist-visible", 0 ).toInt() )
- togglePlaylist();
+ int i_plVis = settings->value( "playlist-visible", 0 ).toInt();
+
settings->endGroup();
+ if( i_plVis ) togglePlaylist();
+
/* Final sizing and showing */
setVisible( !b_hideAfterCreation );
//setMinimumSize( QSize( 0, 0 ) );
More information about the vlc-devel
mailing list