Commit d9f70192 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: fix compressor and spatializer initializer order (fixes #7296)

(cherry picked from commit accf189a)
parent 31ee7dec
......@@ -1226,8 +1226,6 @@ Compressor::Compressor( intf_thread_t *_p_intf, QWidget *_parent )
oldControlVars[i] = comp_controls[i].f_value;
CONNECT( compCtrl[i], valueChanged( int ), this, setInitValues() );
ctrl_texts[i] = new QLabel( qtr( comp_controls[i].psz_descs ) + "\n" );
ctrl_texts[i]->setFont( smallFont );
ctrl_texts[i]->setAlignment( Qt::AlignHCenter );
......@@ -1241,6 +1239,9 @@ Compressor::Compressor( intf_thread_t *_p_intf, QWidget *_parent )
layout->addWidget( ctrl_texts[i], 3, i, Qt::AlignHCenter );
}
for( int i = 0; i < NUM_CP_CTRL; i++ )
CONNECT( compCtrl[i], valueChanged( int ), this, setInitValues() );
BUTTONACT( enableCheck, enable() );
/* Write down initial values */
......@@ -1370,8 +1371,6 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
spatCtrl[i]->setValue( (int)var_InheritFloat( p_intf, spat_controls[i].psz_name ) * 10. );
oldControlVars[i] = spatCtrl[i]->value();
CONNECT( spatCtrl[i], valueChanged( int ), this, setInitValues() );
ctrl_texts[i] = new QLabel( qtr( spat_controls[i].psz_desc ) + "\n" );
ctrl_texts[i]->setFont( smallFont );
......@@ -1385,6 +1384,9 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
}
spatCtrl[0]->setRange( 0, 11 );
for( int i = 0; i < NUM_SP_CTRL; i++ )
CONNECT( spatCtrl[i], valueChanged( int ), this, setInitValues() );
BUTTONACT( enableCheck, enable() );
/* Write down initial values */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment