[vlc-commits] Save display remaining time setting

Edward Wang git at videolan.org
Thu Mar 15 23:50:56 CET 2012


vlc | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Mar 15 18:43:27 2012 -0400| [86cbed5614a0f858ab50c7af45183974d6a58baa] | committer: Jean-Baptiste Kempf

Save display remaining time setting

Close #5914

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/interface_widgets.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index b80e525..0ca799a 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -555,6 +555,8 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf, TimeLabel::Display _displayType  )
       buffering( false ), showBuffering(false), bufVal( -1 ), displayType( _displayType )
 {
     b_remainingTime = false;
+    if( _displayType != TimeLabel::Elapsed )
+        b_remainingTime = getSettings()->value( "MainWindow/ShowRemainingTime", false ).toBool();
     switch( _displayType ) {
         case TimeLabel::Elapsed:
             setText( " --:-- " );
@@ -680,6 +682,7 @@ void TimeLabel::setDisplayPosition( float pos )
 void TimeLabel::toggleTimeDisplay()
 {
     b_remainingTime = !b_remainingTime;
+    getSettings()->setValue( "MainWindow/ShowRemainingTime", b_remainingTime );
 }
 
 



More information about the vlc-commits mailing list