[vlc-commits] Qt: save random/loop/repeat on quit
Jean-Baptiste Kempf
git at videolan.org
Wed Aug 24 16:13:41 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 24 15:53:10 2011 +0200| [fe14749960c3b330714f8f6aeee0d5fe5bceceb1] | committer: Jean-Baptiste Kempf
Qt: save random/loop/repeat on quit
Close #2434
Maybe this shouldn't be in the interface, but in the playlist...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe14749960c3b330714f8f6aeee0d5fe5bceceb1
---
modules/gui/qt4/input_manager.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index b050d80..cb46750 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -985,6 +985,10 @@ MainInputManager::~MainInputManager()
var_DelCallback( THEPL, "repeat", RepeatChanged, this );
var_DelCallback( THEPL, "loop", LoopChanged, this );
+ /* Save some interface state in configuration, at module quit */
+ config_PutInt( p_intf, "random", var_GetBool( THEPL, "random" ) );
+ config_PutInt( p_intf, "loop", var_GetBool( THEPL, "loop" ) );
+ config_PutInt( p_intf, "repeat", var_GetBool( THEPL, "repeat" ) );
}
vout_thread_t* MainInputManager::getVout()
More information about the vlc-commits
mailing list