From 7679ff04d8696fad67f5d0a2a3df4d810046e4bf Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 21 Jan 2004 17:19:59 +0000 Subject: [PATCH] Remove a runtime warning about layouts in a widget that already has a layout svn path=/trunk/kdebase/kwin/; revision=281594 --- kcmkwin/kwinoptions/windows.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();