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/netscape-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/netscape-importer.c')
-rw-r--r-- | importers/netscape-importer.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/importers/netscape-importer.c b/importers/netscape-importer.c index 4e6df275b3..d8daf4329e 100644 --- a/importers/netscape-importer.c +++ b/importers/netscape-importer.c @@ -129,11 +129,8 @@ netscape_store_settings (NetscapeImporter *importer) static void netscape_restore_settings (NetscapeImporter *importer) { - importer->do_mail = bonobo_config_get_boolean_with_default ( - importer->db, "/Importer/Netscape/mail", TRUE, NULL); - - importer->do_settings = bonobo_config_get_boolean_with_default ( - importer->db, "/Importer/Netscape/settings", TRUE, NULL); + importer->do_mail = FALSE; + importer->do_settings = FALSE; } static const char * @@ -866,11 +863,14 @@ netscape_create_structure (EvolutionIntelligentImporter *ii, netscape_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 (); + /* Create a dialog if we're going to be active */ + if (importer->do_settings == 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_settings == TRUE) { |