* modest-presets.c:
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 14 Dec 2006 15:22:53 +0000 (15:22 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 14 Dec 2006 15:22:53 +0000 (15:22 +0000)
  - only return all providers when 'include_globals' is true

pmo-trunk-r558

src/modest-presets.c

index dd2527c..b17304b 100644 (file)
@@ -80,7 +80,7 @@ modest_presets_get_providers  (ModestPresets *self, gint mcc, gboolean include_g
        providers = g_key_file_get_groups (self->keyfile, NULL);
 
        /* return *all* providers? */
-       if (mcc < 0)
+       if (mcc < 0 && include_globals)
                return providers;
 
        /* nope: filter them instead */