2007-04-06 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-ui-actions.c
index 5e4e07d..2bd91be 100644 (file)
@@ -206,15 +206,16 @@ void
 modest_ui_actions_on_accounts (GtkAction *action, ModestWindow *win)
 {
        GSList *account_names = modest_account_mgr_account_names (modest_runtime_get_account_mgr());
-       const gboolean accounts_exist = account_names != NULL;
+                                                    
+       gboolean accounts_exist = account_names != NULL;
        g_slist_free (account_names);
        
        /* This is currently only implemented for Maemo,
         * because it requires a providers preset file which is not publically available.
         */
 #ifdef MODEST_PLATFORM_MAEMO /* Defined in config.h */
+       /* To test, while modest_account_mgr_account_names() is broken: accounts_exist = TRUE; */
        if (!accounts_exist) {
-               printf ("debug: modest_account_mgr_account_names() returned NULL.\n");
                /* If there are no accounts yet, just show the easy-setup wizard, as per the UI spec: */
                ModestEasysetupWizardDialog *wizard = modest_easysetup_wizard_dialog_new ();
                gtk_window_set_transient_for (GTK_WINDOW (wizard), GTK_WINDOW (win));