~ubuntu-branches/ubuntu/vivid/plasma-framework/vivid-proposed

« back to all changes in this revision

Viewing changes to src/plasma/containment.cpp

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2015-04-13 22:33:19 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150413223319-2dztlb74ngu91975
Tags: 5.9.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
508
508
    KConfigGroup cfg = d->containmentActionsConfig();
509
509
    ContainmentActions *plugin = 0;
510
510
 
511
 
    if (containmentActions().contains(trigger)) {
512
 
        plugin = containmentActions().value(trigger);
513
 
        if (plugin->pluginInfo().pluginName() != pluginName) {
514
 
            containmentActions().remove(trigger);
515
 
            delete plugin;
516
 
            plugin = 0;
517
 
        }
 
511
    plugin = containmentActions().value(trigger);
 
512
    if (plugin && plugin->pluginInfo().pluginName() != pluginName) {
 
513
        containmentActions().remove(trigger);
 
514
        delete plugin;
 
515
        plugin = 0;
518
516
    }
519
517
 
520
518
    if (pluginName.isEmpty()) {