From c6b0458c5df9d07d8342498bca173563b465dc79 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 25 Jul 2008 22:32:00 -0700 Subject: [PATCH] Cosmetic: don't access the same configuration item twice. --- modules/gui/qt4/main_interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 16f79f5247..a7dcbf0c6c 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -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 ); -- 2.39.2