diff options
Diffstat (limited to 'shell/importer')
-rw-r--r-- | shell/importer/importer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/importer/importer.c b/shell/importer/importer.c index 824d95d388..20e11524af 100644 --- a/shell/importer/importer.c +++ b/shell/importer/importer.c @@ -361,6 +361,18 @@ start_import (const char *filename, gtk_main_iteration (); icd->client = evolution_importer_client_new_from_id (real_iid); + if (icd->client == NULL) { + label = g_strdup_printf (_("Error starting %s"), real_iid); + g_free (real_iid); + gtk_label_set_text (GTK_LABEL (icd->contents), label); + g_free (label); + while (gtk_events_pending ()) + gtk_main_iteration (); + + gtk_object_unref (GTK_OBJECT (icd->dialog)); + g_free (icd); + return; + } g_free (real_iid); /* NULL for folderpath means use Inbox */ |