]> git.sesse.net Git - vlc/commitdiff
Cosmetic: don't access the same configuration item twice.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jul 2008 05:32:00 +0000 (22:32 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 26 Jul 2008 05:32:00 +0000 (22:32 -0700)
modules/gui/qt4/main_interface.cpp

index 16f79f524740f783c9d0ec119d5897cdf8d3eabe..a7dcbf0c6c9be8822da7b748a185866abfe3e7e3 100644 (file)
@@ -383,16 +383,16 @@ void MainInterface::handleMainUi( QSettings *settings )
     mainLayout->setMargin( 0 );
 
     /* Create the CONTROLS Widget */
-    /* bool b_shiny = config_GetInt( p_intf, "qt-blingbling" ); */
+    bool b_shiny = config_GetInt( p_intf, "qt-blingbling" );
     controls = new ControlsWidget( p_intf, this,
                    settings->value( "adv-controls", false ).toBool(),
-                   config_GetInt( p_intf, "qt-blingbling" ) );
+                   b_shiny );
 
     /* Create the FULLSCREEN CONTROLS Widget */
     /* bool b_shiny = config_GetInt( p_intf, "qt-blingbling" ); */
     fullscreenControls = new FullscreenControllerWidget( p_intf, this,
                    settings->value( "adv-controls", false ).toBool(),
-                   config_GetInt( p_intf, "qt-blingbling" ) );
+                   b_shiny );
 
     /* Add the controls Widget to the main Widget */
     mainLayout->insertWidget( 0, controls, 0, Qt::AlignBottom );