diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-11-11 23:18:23 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-11-11 23:18:23 +0800 |
commit | f573f7b3883750363b4fc10f92d086ec5e58bbd0 (patch) | |
tree | 79fe32c1d3f95aa5f884f14e54f137bf7f12448d /importers/pine-importer.c | |
parent | feac853b1132238134d5616e5e4e180320ca4911 (diff) | |
download | gsoc2013-evolution-f573f7b3883750363b4fc10f92d086ec5e58bbd0.tar.gz gsoc2013-evolution-f573f7b3883750363b4fc10f92d086ec5e58bbd0.tar.zst gsoc2013-evolution-f573f7b3883750363b4fc10f92d086ec5e58bbd0.zip |
Don't let the importers run if people don't want them to
svn path=/trunk/; revision=14664
Diffstat (limited to 'importers/pine-importer.c')
-rw-r--r-- | importers/pine-importer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/importers/pine-importer.c b/importers/pine-importer.c index ab00c7d0ab..f2c812ddca 100644 --- a/importers/pine-importer.c +++ b/importers/pine-importer.c @@ -122,11 +122,8 @@ pine_store_settings (PineImporter *importer) static void pine_restore_settings (PineImporter *importer) { - importer->do_mail = bonobo_config_get_boolean_with_default ( - importer->db, "/Importer/Pine/mail", TRUE, NULL); - - importer->do_address = bonobo_config_get_boolean_with_default ( - importer->db, "/Importer/Pine/address", TRUE, NULL); + importer->do_mail = FALSE; + importer->do_address = FALSE; } @@ -548,10 +545,13 @@ pine_create_structure (EvolutionIntelligentImporter *ii, pine_store_settings (importer); /* Create a dialog */ - importer->dialog = create_importer_gui (importer); - gtk_widget_show_all (importer->dialog); - while (gtk_events_pending ()) { - gtk_main_iteration (); + if (importer->do_address == TRUE || + importer->do_mail == TRUE) { + importer->dialog = create_importer_gui (importer); + gtk_widget_show_all (importer->dialog); + while (gtk_events_pending ()) { + gtk_main_iteration (); + } } if (importer->do_address == TRUE) { |