aboutsummaryrefslogtreecommitdiffstats
path: root/shell/importer
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-03-31 11:32:48 +0800
committerIain Holmes <iain@src.gnome.org>2001-03-31 11:32:48 +0800
commit60d5bd3fc9197b9def0415d9e45e57a62814c4f5 (patch)
tree8175dd356d8367474b86958e3b346ba1a9e12a4c /shell/importer
parent2960cad1a7015eb13de39503081249b63f165962 (diff)
downloadgsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar.gz
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar.bz2
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar.lz
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar.xz
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.tar.zst
gsoc2013-evolution-60d5bd3fc9197b9def0415d9e45e57a62814c4f5.zip
If the importer can't be started, don't continue
svn path=/trunk/; revision=9064
Diffstat (limited to 'shell/importer')
-rw-r--r--shell/importer/importer.c12
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 */