[vlc-commits] qt4: toggleAdvanced simplifications

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 18 12:26:54 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 18:35:08 2011 +0200| [46fa336fd8ce6c632b846d2a6bd11d75de899620] | committer: Jean-Baptiste Kempf

qt4: toggleAdvanced simplifications

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

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

 modules/gui/qt4/components/controller.cpp |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index c83af0f..22ec4cd 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -659,16 +659,8 @@ void ControlsWidget::toggleAdvanced()
 {
     if( !advControls ) return;
 
-    if( !b_advancedVisible )
-    {
-        advControls->show();
-        b_advancedVisible = true;
-    }
-    else
-    {
-        advControls->hide();
-        b_advancedVisible = false;
-    }
+    advControls->setVisible( !b_advancedVisible );
+    b_advancedVisible = !b_advancedVisible;
     emit advancedControlsToggled( b_advancedVisible );
 }
 



More information about the vlc-commits mailing list