diff --git a/kcms/colors/colorscm.cpp b/kcms/colors/colorscm.cpp --- a/kcms/colors/colorscm.cpp +++ b/kcms/colors/colorscm.cpp @@ -161,7 +161,6 @@ if (name == i18nc("Default color scheme", "Default")) { schemeRemoveButton->setEnabled(false); - schemeEditButton->setEnabled(false); KSharedConfigPtr config = m_config; config->setReadDefaults(true); @@ -423,10 +422,7 @@ const QString fileBaseName = currentItem->data(Qt::UserRole).toString(); const QString path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "color-schemes/" + fileBaseName + ".colors"); - if (path.isEmpty()) { - KMessageBox::sorry(this, i18n("This scheme was not found."), i18n("File not found")); - return; - } + SchemeEditorDialog* dialog = new SchemeEditorDialog(path, this); dialog->setAttribute(Qt::WA_DeleteOnClose); // avoid mem-leak dialog->setModal(true);