Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/containment.cpp
Show First 20 Lines • Show All 516 Lines • ▼ Show 20 Line(s) | |||||
517 | } | 517 | } | ||
518 | 518 | | |||
519 | void Containment::setContainmentActions(const QString &trigger, const QString &pluginName) | 519 | void Containment::setContainmentActions(const QString &trigger, const QString &pluginName) | ||
520 | { | 520 | { | ||
521 | KConfigGroup cfg = d->containmentActionsConfig(); | 521 | KConfigGroup cfg = d->containmentActionsConfig(); | ||
522 | ContainmentActions *plugin = nullptr; | 522 | ContainmentActions *plugin = nullptr; | ||
523 | 523 | | |||
524 | plugin = containmentActions().value(trigger); | 524 | plugin = containmentActions().value(trigger); | ||
525 | if (plugin && plugin->pluginInfo().pluginName() != pluginName) { | 525 | if (plugin && plugin->metadata().pluginId() != pluginName) { | ||
526 | containmentActions().remove(trigger); | 526 | containmentActions().remove(trigger); | ||
527 | delete plugin; | 527 | delete plugin; | ||
528 | plugin = nullptr; | 528 | plugin = nullptr; | ||
529 | } | 529 | } | ||
530 | 530 | | |||
531 | if (pluginName.isEmpty()) { | 531 | if (pluginName.isEmpty()) { | ||
532 | cfg.deleteEntry(trigger); | 532 | cfg.deleteEntry(trigger); | ||
533 | } else if (plugin) { | 533 | } else if (plugin) { | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |