diff --git a/clients/oxygen/config/oxygenshadowconfigurationui.cpp b/clients/oxygen/config/oxygenshadowconfigurationui.cpp index 88c383556b..7adedf7c10 100644 --- a/clients/oxygen/config/oxygenshadowconfigurationui.cpp +++ b/clients/oxygen/config/oxygenshadowconfigurationui.cpp @@ -40,7 +40,8 @@ namespace Oxygen // connections ui.outerColor->setEnabled( false ); - connect( ui.useOuterColor, SIGNAL( toggled( bool ) ), ui.outerColor, SLOT( setEnabled( bool ) ) ); + connect( ui.useOuterColor, SIGNAL( toggled( bool ) ), SLOT( enableOuterColor() ) ); + connect( this, SIGNAL( toggled( bool ) ), SLOT( enableOuterColor() ) ); connect( ui.shadowSize, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) ); connect( ui.verticalOffset, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) ); diff --git a/clients/oxygen/config/oxygenshadowconfigurationui.h b/clients/oxygen/config/oxygenshadowconfigurationui.h index 3912e4402d..f50ae860c1 100644 --- a/clients/oxygen/config/oxygenshadowconfigurationui.h +++ b/clients/oxygen/config/oxygenshadowconfigurationui.h @@ -48,6 +48,11 @@ namespace Oxygen //! emmitted when configuration is changed void changed( void ); + protected slots: + + //! update enable state of outer color chooser + void enableOuterColor( void ) + { ui.outerColor->setEnabled( isChecked() && ui.useOuterColor->isChecked() ); } };