From b8f9fb254f8f8b252f4ad5ea6b5148352578a9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 21 Feb 2014 12:12:05 +0100 Subject: [PATCH] Fix config dialog of Aurorae decorations Install the layout on the dialog not on the KCM. --- kcmkwin/kwindecoration/kwindecoration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 8bc10713fe..83fef1097d 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -370,12 +370,12 @@ void KWinDecorationModule::slotConfigureDecoration() dlg->setWindowTitle(i18n("Decoration Options")); KWinAuroraeConfigForm *form = new KWinAuroraeConfigForm(dlg); form->enableNoSideBorderSupport(index.data(DecorationModel::TypeRole).toInt() == DecorationModelData::QmlDecoration); - setLayout(new QVBoxLayout); + dlg->setLayout(new QVBoxLayout); QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dlg.data()); connect(buttons, SIGNAL(accepted()), dlg, SLOT(accept())); connect(buttons, SIGNAL(rejected()), dlg, SLOT(reject())); - layout()->addWidget(form); - layout()->addWidget(buttons); + dlg->layout()->addWidget(form); + dlg->layout()->addWidget(buttons); form->borderSizesCombo->setCurrentIndex(index.data(DecorationModel::BorderSizeRole).toInt()); form->buttonSizesCombo->setCurrentIndex(index.data(DecorationModel::ButtonSizeRole).toInt());