~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to digikam/utilities/imageeditor/imagepluginloader.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2006-05-15 01:15:02 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515011502-kpyuz7766hpbuia8
Tags: 0.8.2~rc1-0ubuntu1
* sync with debian (UVF see #44102)
  0.8.2~rc1-0ubuntu1 is identical to debian's 0.8.1+0.8.2-rc1-1.
  Version was changed due to latest 0.8.1.ubuntu-0ubuntu1 upload.
  This version is unfortunately bigger than debian's 0.8.1+0.8.2-rc1-1
* Merge in ubuntu changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    KConfig* config = kapp->config();
48
48
    config->setGroup("ImageViewer Settings");  
49
49
    
 
50
    // If digiKam have been started to the first time, there is no image plugins list 
 
51
    // available ==> we load all by default.
 
52
    
50
53
    if ( config->readEntry("ImagePlugins List").isNull() )   
51
54
    {
52
55
        KTrader::OfferList offers = KTrader::self()->query("Digikam/ImagePlugin");
57
60
            KService::Ptr service = *iter;
58
61
            imagePluginsList2Load.append(service->library());
59
62
        }
 
63
 
 
64
        // Create the plugins list to config file.
 
65
        config->writeEntry("ImagePlugins List", imagePluginsList2Load);
 
66
        config->sync();
60
67
    }
61
68
    else
62
69
        imagePluginsList2Load = config->readListEntry("ImagePlugins List");