diff options
Diffstat (limited to 'plugins/tnef-attachments/tnef-plugin.c')
-rw-r--r-- | plugins/tnef-attachments/tnef-plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/tnef-attachments/tnef-plugin.c b/plugins/tnef-attachments/tnef-plugin.c index f0c6df4af0..0faac25811 100644 --- a/plugins/tnef-attachments/tnef-plugin.c +++ b/plugins/tnef-attachments/tnef-plugin.c @@ -35,6 +35,7 @@ int verbose = 0; int saveRTF = 0; int saveintermediate = 0; char *filepath = NULL; +gboolean loaded = FALSE; void processTnef(TNEFStruct *tnef); void saveVCalendar(TNEFStruct *tnef); void saveVCard(TNEFStruct *tnef); @@ -178,10 +179,15 @@ int e_plugin_lib_enable(EPluginLib *ep, int enable); int e_plugin_lib_enable(EPluginLib *ep, int enable) { + if (loaded) + return 0; + + loaded = TRUE; if (enable) { bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); } + return 0; } |