diff options
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell-startup-wizard.c | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 5c8b140d00..7e011992c3 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2001-09-20 Iain Holmes <iain@ximian.com> + + * e-shell-startup-wizard.c (e_shell_startup_wizard_create): Check + the number of mail accounts that exist and display the dialog it this + is 0. + 2001-09-19 Ettore Perazzoli <ettore@ximian.com> * e-task-widget.c: New member `tooltips' in `ETaskWidgetPrivate'. diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c index d875540502..ed42cf8bd6 100644 --- a/shell/e-shell-startup-wizard.c +++ b/shell/e-shell-startup-wizard.c @@ -767,7 +767,7 @@ e_shell_startup_wizard_create (void) { SWData *data; CORBA_Environment ev; - gboolean runbefore; + int num_accounts; data = g_new0 (SWData, 1); @@ -781,10 +781,10 @@ e_shell_startup_wizard_create (void) return FALSE; } - runbefore = bonobo_config_get_boolean (data->db, "/Shell/RunBefore", &ev); + num_accounts = bonobo_config_get_long_with_default (data->db, "/Mail/Accounts/num", 0, NULL); CORBA_exception_free (&ev); - if (runbefore == TRUE) { + if (num_accounts != 0) { bonobo_object_release_unref (data->db, NULL); g_free (data); return TRUE; @@ -839,7 +839,6 @@ e_shell_startup_wizard_create (void) gtk_main (); /* Sync database */ - bonobo_config_set_boolean (data->db, "/Shell/RunBefore", TRUE, &ev); Bonobo_ConfigDatabase_sync (data->db, &ev); bonobo_object_release_unref (data->db, NULL); CORBA_exception_free (&ev); |