From kde-commits Mon Jul 12 17:02:13 2004 From: Albert Astals Cid Date: Mon, 12 Jul 2004 17:02:13 +0000 To: kde-commits Subject: kdeutils/klaptopdaemon Message-Id: <20040712170213.C98012013 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108965174805096 CVS commit by aacid: Get rid of a shell warning telling that a layout was beign added to a widget that already had a layout M +1 -3 apm.cpp 1.14 --- kdeutils/klaptopdaemon/apm.cpp #1.13:1.14 @@ -95,5 +95,5 @@ ApmConfig::ApmConfig (QWidget * parent, "or use the button below to make the %1 application\n" "set-uid root").arg(apm_name), this)); - QHBoxLayout *ll = new QHBoxLayout(this); + QHBoxLayout *ll = new QHBoxLayout(top_layout); QPushButton *setupButton = new QPushButton(i18n("Setup Helper Application"), this); connect( setupButton, SIGNAL(clicked()), this, SLOT(setupHelper()) ); @@ -102,5 +102,4 @@ ApmConfig::ApmConfig (QWidget * parent, ll->addWidget(setupButton); ll->addStretch(8); - top_layout->addLayout(ll); if (laptop_portable::has_software_suspend()) { top_layout->addWidget( new QLabel( i18n("Your system seems to have 'Software Suspend' installed, this can\n" @@ -124,5 +123,4 @@ ApmConfig::ApmConfig (QWidget * parent, ll->addWidget(setupSSButton); ll->addStretch(8); - top_layout->addLayout(ll); } else { enableSoftwareSuspendHibernate = 0;