[vlc-commits] Qt: don't save the filepath between session if recent is deactivated
Jean-Baptiste Kempf
git at videolan.org
Tue Apr 26 01:56:14 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 26 01:54:03 2011 +0200| [02f89b753002952e161934ba7d0c5958c25a1a3c] | committer: Jean-Baptiste Kempf
Qt: don't save the filepath between session if recent is deactivated
Close #4324
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02f89b753002952e161934ba7d0c5958c25a1a3c
---
modules/gui/qt4/qt4.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 220d02d..e5ecb32 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -558,8 +558,11 @@ static void *Thread( void *obj )
/* Delete the recentsMRL object before the configuration */
RecentsMRL::killInstance();
- /* Save the path */
- getSettings()->setValue( "filedialog-path", p_intf->p_sys->filepath );
+ /* Save the path or delete if recent play are disabled */
+ if( var_InheritBool( p_intf, "qt-recentplay" ) )
+ getSettings()->setValue( "filedialog-path", p_intf->p_sys->filepath );
+ else
+ getSettings()->remove( "filedialog-path" );
/* Delete the configuration. Application has to be deleted after that. */
delete p_intf->p_sys->mainSettings;
More information about the vlc-commits
mailing list