do sgpgme_init() after prefs_gpg_init() because prefs are used in sgpgme_init()
authorPaul <paul@claws-mail.org>
Fri, 21 Aug 2015 11:05:59 +0000 (12:05 +0100)
committerPaul <paul@claws-mail.org>
Fri, 21 Aug 2015 11:05:59 +0000 (12:05 +0100)
src/plugins/pgpcore/plugin.c

index 1ba95e663ac50d0bc75a75eb6b9025eed904bec0..a11c21100db2be1d299e3d900a1b6c4d50e642a7 100644 (file)
@@ -42,8 +42,8 @@ gint plugin_init(gchar **error)
                                VERSION_NUMERIC, PLUGIN_NAME, error))
                return -1;
 
                                VERSION_NUMERIC, PLUGIN_NAME, error))
                return -1;
 
-       sgpgme_init();
        prefs_gpg_init();
        prefs_gpg_init();
+       sgpgme_init();
        sgpgme_check_create_key();
        pgp_viewer_init();
        autocompletion_init(error);
        sgpgme_check_create_key();
        pgp_viewer_init();
        autocompletion_init(error);