Commit 542eae12 authored by Laurent Montel's avatar Laurent Montel 😁

Hide configure button

parent 4c859a71
......@@ -1390,13 +1390,14 @@ void KOPrefsDialogPlugins::selectionChanged()
PluginItem *item = dynamic_cast<PluginItem *>(mTreeWidget->selectedItems().last());
if (!item) {
mConfigureButton->setEnabled(false);
mConfigureButton->hide();
mDescription->setText(QString());
return;
}
QVariant variant = item->service()->property(QStringLiteral("X-KDE-KOrganizer-HasSettings"));
bool hasSettings = true;
bool hasSettings = false;
if (variant.isValid()) {
hasSettings = variant.toBool();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment