diff --git a/kcmkwin/kwinrules/ruleswidget.cpp b/kcmkwin/kwinrules/ruleswidget.cpp index 5eb7afaf79..30374429b4 100644 --- a/kcmkwin/kwinrules/ruleswidget.cpp +++ b/kcmkwin/kwinrules/ruleswidget.cpp @@ -687,6 +687,7 @@ void RulesWidget::detectClicked() detect_dlg = new DetectDialog; connect(detect_dlg, SIGNAL(detectionDone(bool)), this, SLOT(detected(bool))); detect_dlg->detect(Ui::RulesWidgetBase::detection_delay->value()); + Ui::RulesWidgetBase::detect->setEnabled(false); } void RulesWidget::detected(bool ok) @@ -725,6 +726,7 @@ void RulesWidget::detected(bool ok) delete detect_dlg; detect_dlg = nullptr; detect_dlg_ok = ok; + Ui::RulesWidgetBase::detect->setEnabled(true); } #define GENERIC_PREFILL( var, func, info, uimethod ) \