diff --git a/src/kcmultidialog.cpp b/src/kcmultidialog.cpp --- a/src/kcmultidialog.cpp +++ b/src/kcmultidialog.cpp @@ -156,8 +156,10 @@ } bool change = false; + bool defaulted = false; if (activeModule) { change = activeModule->changed(); + defaulted = activeModule->defaulted(); QPushButton *applyButton = q->buttonBox()->button(QDialogButtonBox::Apply); if (applyButton) { @@ -223,7 +225,7 @@ QPushButton *defaultButton = q->buttonBox()->button(QDialogButtonBox::RestoreDefaults); if (defaultButton) { - defaultButton->setEnabled(activeModule->buttons() & KCModule::Default); + defaultButton->setEnabled((activeModule->buttons() & KCModule::Default) && !defaulted); } } }