diff --git a/kcmkwin/kwindecoration/buttons.ui b/kcmkwin/kwindecoration/buttons.ui
index 73f0b1a4df..037debfb37 100644
--- a/kcmkwin/kwindecoration/buttons.ui
+++ b/kcmkwin/kwindecoration/buttons.ui
@@ -11,6 +11,9 @@
+
+ 0
+
-
@@ -32,7 +35,11 @@
-
-
+
+
+ false
+
+
@@ -45,5 +52,22 @@
-
+
+
+ useCustomButtonPositionsCheckBox
+ clicked(bool)
+ buttonPositionWidget
+ setEnabled(bool)
+
+
+ 205
+ 39
+
+
+ 231
+ 90
+
+
+
+
diff --git a/kcmkwin/kwindecoration/buttonsconfigdialog.cpp b/kcmkwin/kwindecoration/buttonsconfigdialog.cpp
index 96cee70053..f1eaa8f076 100644
--- a/kcmkwin/kwindecoration/buttonsconfigdialog.cpp
+++ b/kcmkwin/kwindecoration/buttonsconfigdialog.cpp
@@ -45,7 +45,7 @@ KWinDecorationButtonsConfigDialog::KWinDecorationButtonsConfigDialog(bool custom
setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Default | KDialog::Reset);
enableButton(KDialog::Reset, false);
QVBoxLayout* layout = new QVBoxLayout;
- layout->addWidget(m_ui);
+ m_ui->buttonPositionWidget->setEnabled(customPositions);
QWidget* main = new QWidget(this);
main->setLayout(layout);