diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index fa41f0dac9..faaa2ea7e4 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -513,7 +513,7 @@ KAdvancedConfig::KAdvancedConfig (bool _standAlone, KConfig *_config, QWidget *p lay->addWidget(electricBox); - QHBoxLayout* focusStealingLayout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint()); + QHBoxLayout* focusStealingLayout = new QHBoxLayout( lay,KDialog::spacingHint()); QLabel* focusStealingLabel = new QLabel( i18n( "Focus stealing prevention level:" ), this ); focusStealing = new QComboBox( this ); focusStealing->insertItem( i18n( "Focus Stealing Prevention Level", "None" )); @@ -543,8 +543,6 @@ KAdvancedConfig::KAdvancedConfig (bool _standAlone, KConfig *_config, QWidget *p connect(focusStealing, SIGNAL(activated(int)), SLOT(changed())); - lay->addLayout( focusStealingLayout ); - lay->addStretch(); load();